![]() |
![]() |
![]()
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 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 34 Pomógł: 0 Dołączył: 20.02.2009 Ostrzeżenie: (0%) ![]() ![]() |
mam jeszcze pytanie.. zrobilem tak :
Cytat C:\usr\mysql\bin>mysql -h localhost -u root -p krasnal Enter password: ******* Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 to server version: 3.23.58-max-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database portal; Query OK, 1 row affected (0.00 sec) mysql> use portal; Database changed mysql> mysql> 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 `user_id` (`user_id`) -> ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; ERROR 1064: Something is wrong in your syntax obok 'ENGINE=MyISAM DEFAULT CHARSE T=latin1 AUTO_INCREMENT=2' w linii 11 mysql> mysql> mysql> mysql> INSERT -> INTO `users` VALUES (1, 'admin', 'admin', 'db42fd', 'kevinek0@wp.pl', ' ' , 'Tarnów', 'Php'); ERROR 1146: Table 'portal.users' doesn't exist prosze o pomoc |
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.10.2025 - 03:03 |