Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Requesting Creating SQL TABLE


Delta

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   0
  • Joined:  09/27/12
  • Last Seen:  

query_sql "SELECT `id`,`nameid`,`amount`,`identify`,`refine`,`attribute`,`card0`,`card1`,`card2`,`card3` FROM `reward_table` WHERE `char_id`

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.03
  • Content Count:  2285
  • Reputation:   748
  • Joined:  06/16/12
  • Last Seen:  

maybe?



CREATE TABLE `reward_table` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`char_id` INT(11) UNSIGNED NOT NULL,
`nameid` SMALLINT(5) UNSIGNED NOT NULL,
`amount` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '1',
`refine` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`identify` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`attribute` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`card0` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`card1` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`card2` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`card3` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) Engine=InnoDB AUTO_INCREMENT=1;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   0
  • Joined:  09/27/12
  • Last Seen:  

Thanks

 

 

maybe?
CREATE TABLE `reward_table` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`char_id` INT(11) UNSIGNED NOT NULL,
`nameid` SMALLINT(5) UNSIGNED NOT NULL,
`amount` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '1',
`refine` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`identify` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`attribute` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`card0` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`card1` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`card2` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`card3` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) Engine=InnoDB AUTO_INCREMENT=1;

 

Thanks cydh it is working now! Is there site that I can read and learn about making sql tables? 

 

btw one last request, I'll send a pm to you. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   1
  • Joined:  12/12/13
  • Last Seen:  

same ask.. but a different.. i need to create a table named feedback on sql too with this values...

 

i dont know sql.. anybody can help me please ?

 feedback(player,type,time,playermap,playerx,playery,feedback,status)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...