Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jednoczesny update wszystkich pol rekordu
yalus
post
Post #1





Grupa: Zarejestrowani
Postów: 281
Pomógł: 0
Dołączył: 8.07.2005
Skąd: EU

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


witam

czy jest mozliwe updejtowanie wszystkich pol jednego rekordu ktore sa null przy uzyciu jednego zapytania sql


rekord sklada sie z 35 pol ale tylko niektore pola sa null np:

pole1| pole2| pole3|
'abc' | null | 'abc' |
'null' | null | 'abc' |
'abc' | 'abc' | 'null' |
'abc' | null | 'abc' |

jak teraz skonstruowac zapytanie aby realizowalo cos takiego

update tabela set pole1='' where pole1 is null, set pole2='' where pole2 is null set pole3='' where pole3 is null


pozdrawiam

Ten post edytował yalus 7.02.2007, 13:24:13
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: 23.08.2025 - 00:32