Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySql] Dodanie o istniejacej tabeli 2 pol
DannyM
post
Post #1





Grupa: Zarejestrowani
Postów: 507
Pomógł: 2
Dołączył: 30.10.2003
Skąd: Poznań

Ostrzeżenie: (10%)
X----


Mam sobie tabele PRODUKT
Pisze instalke i chce do niej dodac 2 pola po konkretnym polu "list_order"
Jak powinno wygladac zapytanie bo moje jakos nie dziala (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)


  1. CREATE TABLE IF NOT EXISTS `PRODUKT` (
  2. ALTER TABLE `PRODUKT` ADD `DANE` VARCHAR( 10 ) NOT NULL AFTER `list_order` ,
  3. ADD `OPIS` VARCHAR( 10 ) NOT NULL AFTER `DANE`
  4. );
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
DannyM
post
Post #2





Grupa: Zarejestrowani
Postów: 507
Pomógł: 2
Dołączył: 30.10.2003
Skąd: Poznań

Ostrzeżenie: (10%)
X----


Cytat(DannyM @ 17.06.2008, 13:15:15 ) *
Mam sobie tabele PRODUKT
Pisze instalke i chce do niej dodac 2 pola po konkretnym polu "list_order"
Jak powinno wygladac zapytanie bo moje jakos nie dziala (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
  1. CREATE TABLE IF NOT EXISTS `PRODUKT` (
  2. ALTER TABLE `PRODUKT` ADD `DANE` VARCHAR( 10 ) NOT NULL AFTER `list_order` ,
  3. ADD `OPIS` VARCHAR( 10 ) NOT NULL AFTER `DANE`
  4. );



Czyli wystarczy
  1. ALTER TABLE `PRODUKT` ADD `DANE` VARCHAR( 10 ) NOT NULL AFTER `list_order` ,
  2. ADD `OPIS` VARCHAR( 10 ) NOT NULL AFTER `DANE`
  3. );
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: 4.10.2025 - 18:57