作者:青椒盐水_205 | 来源:互联网 | 2023-05-18 06:37
PardonmeifImaskingthis,butImnotaSQLServernorSQLdeveloper.如果我问这个问题,请原谅我,但我不是SQLServ
Pardon me if I'm asking this, but I'm not a SQL Server nor SQL developer.
如果我问这个问题,请原谅我,但我不是SQL Server,也不是SQL开发人员。
i have a CSV that i import into a table let's call it T that i create on the fly in SQL Server 2005.
我有一个CSV导入到一个表中让我们称之为我在SQL Server 2005中即时创建的。
what i would like to do is to run some queries against other tables based on the data imported into the table T i created. example :
我想要做的是根据导入到我创建的表T中的数据对其他表运行一些查询。例子:
select *
from TableX
where customerID = [this should contain the customerID from the table T]
and then if i find it, i need to update the same table T, if not i move along... until the last record in that csv file. Any idea will be appreciated.
然后,如果我找到它,我需要更新相同的表T,如果不是我移动...直到该csv文件中的最后一条记录。任何想法将不胜感激。
2 个解决方案