Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Zmiana typu pola w Tabeli w MySQL
casperek
post
Post #1





Grupa: Zarejestrowani
Postów: 10
Pomógł: 0
Dołączył: 25.03.2003

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


ma sobie tabele w ktorym jest pole Typu int, tabela jest wypelniona danymi, i teraz chce zmienic typ pola z int na text jak to zrobic, bo nie chce mi sie Tworzyc nastepnej tabeli i kopiowac danych
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kossa
post
Post #2





Grupa: Zarejestrowani
Postów: 1 165
Pomógł: 9
Dołączył: 9.04.2002
Skąd: Toruń

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


Ex. pole id to int i zamieniam na bigint (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Kod
ALTER TABLE $tabela CHANGE id id BIGINT (10) not null AUTO_INCREMENT


Kossa
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: 27.09.2025 - 16:55