Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mi 24.10.07 10:54 
Hallo Leute,
diese SQL Anweisung funktioniert auf einer MSSQL Datenbank, MySQL jedoch versteht sie nicht. Kann mir jemand einen Tip geben was ich bei Mysql anders machen muss um das ziel beizubehalten der sql?


ausblenden SQL-Anweisung
1:
2:
3:
4:
delete from Table1
          where Table1.Nr in  (select K.Nr
           from Table1 1,Table2 2
           where (1.Nr=2.karte) and (1.Nr<>0) and (2.Bedingung=0))



lg

Moderiert von user profile iconmatze: SQL-Tags hinzugefügt
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mi 24.10.07 11:02 
Ich meine mich zu erinnern, dass MySQL bis zu einer bestimmten Version keinen Subselects unterstützte. Forsch am besten mal in dieser Richtung, wenn du eine ältere MySQL-Version benutzt.

_________________
Bravery calls my name in the sound of the wind in the night...
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mi 24.10.07 11:11 
ok mach ich mal
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mi 24.10.07 11:21 
ok du scheinst recht zu haben. dann werde ich mal updaten und das ausprobieren. dank dir
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 27.10.07 11:21 
Auch mag MySQL keine Zahlen als Bezeichner ... Nutz dafür einfach Buchstaben ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.