现在在命令行窗口中用sql查询产生了结果集,
请问如何把这个结果存成一个表文件?
手头没有相关资料,谢了先!
---------------------------------------------------------------
直接将查询结果保存到表中:
Select 字段1,...字段n From 表 Into Table 新表名
---------------------------------------------------------------
Select ... from ... into cursor 临时表名
---------------------------------------------------------------
Into Table tName
---------------------------------------------------------------
或者你得到 sql查询产生的结果集后
copy to 表名