|M| 新要求 求一条SQL insert into 语句 把A表中的ID=2的记录添加到B表 ---- 谢谢 在线等马上结
原贴:http://community.csdn.net/Expert/topic/5098/5098930.xml?temp=.294491
要求是这样的
表A
id class name sex age
1 A a1 B 10
2 A b1 G 11
3 B cc B 11
表B
id editid Aid Aname Aage
然后现在要把表A中ID为2的记录添加到B表中
editid为当前操作者ID
如editid='001'
则结果为
表B
id editid Aid Aname Aage
1 001 2 b1 11
谢谢 在线等马上结