table1 table2
ID NAME ID NAME WORK
1 a 1 teacher
2 b 2 student
3 c 3 student
4 d 4 teacher
...
其中ID唯一如何UPDATE使table2为
ID NAME WORK
1 a teacher
2 b student
3 c student
4 d teacher
...
数据库为 delphi6==>paradox!
ID NAME ID NAME WORK
1 a 1 teacher
2 b 2 student
3 c 3 student
4 d 4 teacher
...
其中ID唯一如何UPDATE使table2为
ID NAME WORK
1 a teacher
2 b student
3 c student
4 d teacher
...
数据库为 delphi6==>paradox!
别说我,嘻嘻^o^================================================================
◆◆◆ CSDN查询助手,查询方便快捷◆◆◆ 下载地址:
http://CoolSlob.ifood1.com/Download/CSDNFinder.exe
http://CoolSlob.8u8.com/Download/Tools/CSDNFinder.Slob[更名为.exe即可]
你小心你的嘴,NB吹着是不是很舒服?
上面的语句都不真确!
要不这样吧,你给我发过来,我给你调试好再给你如何?
如果还不行,那要看看是不是你的要求有什么特殊的地方了!
我是不懂insert 如何实现update的功能 大约只有delte update
大家回答的都没错知不过可能没用过paradox
update table2 set table2."name"=(select "name"
from table1 where table1.id=table2.id)