Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SQL][MYSQL]Dobrze robie ?, prosze o sprawdzenie
kjiu
post
Post #1





Grupa: Zarejestrowani
Postów: 34
Pomógł: 0
Dołączył: 20.02.2009

Ostrzeżenie: (0%)
-----


Witam..

Troche glupia prozba ale czy dobrze to napisalem ?

Cytat
CREATE TABLE `users` (
`user_id` int(8) NOT NULL auto_increment,
`user_nick` varchar(20) NOT NULL default '',
`user_login` varchar(20) NOT NULL default '',
`user_password` varchar(30) NOT NULL default '',
`user_emial` varchar(40) NOT NULL default '',
`user_birthdate` DATETIME NOT NULL default '',
`user_live` varchar(30) NOT NULL default '',
`user_like` varchar(25) NOT NULL default '',
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

INSERT
INTO `uzytkownicy` VALUES (1, 'admin', 'admin', 'db42fd', 'kevinek0@wp.pl', ' ', 'Tarnów', 'Php');


Chodzi mi oto zebym pozniej problemow nie mial (IMG:http://forum.php.pl/style_emoticons/default/dry.gif)

Ten post edytował kjiu 22.04.2009, 13:46:08
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Spawnm
post
Post #2





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




nie słyszałem o ENGINE , daj TYPE=MyISAM
Go to the top of the page
+Quote Post
phpion
post
Post #3





Grupa: Moderatorzy
Postów: 6 072
Pomógł: 861
Dołączył: 10.12.2003
Skąd: Dąbrowa Górnicza




Cytat(Spawnm @ 22.04.2009, 16:40:00 ) *
nie słyszałem o ENGINE

http://dev.mysql.com/doc/refman/5.1/en/create-table.html
Cytat
The older TYPE option was synonymous with ENGINE. TYPE has been deprecated since MySQL 4.0 but is still supported for backward compatibility in MySQL 5.1 (excepting MySQL 5.1.7). Since MySQL 5.1.8, it produces a warning. It is removed as of MySQL 5.2. You should not use TYPE in any new applications, and you should immediately begin conversion of existing applications to use ENGINE instead.

Możliwe, że autor używa star(sz)ej wersji MySQL i zmiana ENGINE -> TYPE pomoże.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 16.10.2025 - 19:46