hi,
Spaltenanzahl = 3
id | key1 | anzSpalten Inhalt
id=1
key1 = "a,b,c"
Sieht so aus, als ob du nicht vernünftig normalisiert hättest - überdenke dein Datenmodell.
Also prüfe ob $insertkey (b) in key1 (a,b,c) wenn ja dann update key1
gleichzeitig update mir jedoch immer Spalte anz (anz+2)Wie kann ich diese UPDATE Funktion formulieren?
Mit IF(), wie du schon selber schriebst.
Hast du das mal im Manual deines Datenbanksystems nachgeschlagen?
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }