一个数据库查询的问题(50)

  • 主题发起人 hellobao007
  • 开始时间
H

hellobao007

Unregistered / Unconfirmed
GUEST, unregistred user!
A B C D E F G0 0 0 2 9005 2010008693 洪叶9005 2010008888 孙雪芹 1 0 0 09005 2010008891 王晓萍 1 0 0 09005 2010008895 马春芳 1 0 0 09005 2010008918 王芳 1 0 0 0能不能转化为9005 2010008888 孙雪芹 1 9005 2010008693 洪叶9005 2010008891 王晓萍 1 0 0 09005 2010008895 马春芳 1 0 0 09005 2010008918 王芳 1 0 0 0
 
写得不详细,只能按看到的写,假设都是varchar型select * into #temp from table1 where B='2010008888' update #temp set E=table1.E,F=table1.F,G=table1.Gfrom table1 where table1.A='0'update table1 set E=#temp.E,F=#temp.F,G=#temp.Gfrom table1,#temp where table1.B=#temp.Bdelete table1 where A='0'
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
728
import
I
I
回复
0
查看
865
import
I
顶部