[Off] Create Table (MySQL) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Off] Create Table (MySQL) (
/showthread.php?tid=460970)
Create Table (MySQL) -
AlucardSnow - 30.08.2013
Bom, tinha um cуdigo que vi mais da muito erros...
Esse:
pawn Код:
"CREATE TABLE IF NOT EXISTS `users` (\
`id` int(11) NOT NULL, AUTO_INCREMENT,\
`name` varchar(25) NOT NULL, \
`password` varchar(25) NOT NULL, \
`level` int(11) NOT NULL, \
`bank` int(11) NOT NULL, \
`skin` int(11) NOT NULL, \
`money` int(11) NOT NULL, \
PRIMARY KEY(`id`)\
Eu to a um tempгo parado, tem como explicar ae como corrigir?
Obs: to olhando no search e caso eu achar algo dou @edit aqui.
Sу isso pessoal '-'
Re: Create Table (MySQL) -
mau.tito - 30.08.2013
Esta funcao de if exits e apenas para SQLite , para MySql nao funciona !
Re: Create Table (MySQL) -
smiiir - 30.08.2013
Quote:
Originally Posted by mau.tito
Esta funcao de if exits e apenas para SQLite , para MySql nao funciona !
|
Quem disse isso?
Re: Create Table (MySQL) -
Kmatsu - 30.08.2013
"CREATE TABLE IF NOT EXISTS `users` (\
vocк abriu um parenteses ali e nгo fechou '-'
fecha ele e testa .-.
@Edit:
pawn Код:
"CREATE TABLE IF NOT EXISTS `users` (\
`id` int(11) NOT NULL, AUTO_INCREMENT,\
`name` varchar(25) NOT NULL, \
`password` varchar(25) NOT NULL, \
`level` int(11) NOT NULL, \
`bank` int(11) NOT NULL, \
`skin` int(11) NOT NULL, \
`money` int(11) NOT NULL, \
PRIMARY KEY(`id`))"
Ps: nгo testei .-.