Use tt
Copy To TEMP.TXT Delimited With Tab
Strtofile(Strtran(Strtran(Filetostr("TEMP.TXT"),'"',''),Chr(9),Chr(13)+Chr(10)),"TEMP.TXT")
Create Table 目标表 (字段A C(20))
Append From temp.txt Delimited With Tab
如果只想文本:
*--假设字段全为字符型
Use 原表名
Copy To TEMP.TXT Delimited With Tab
Strtofile(strtran(Strtran(Filetostr("TEMP.TXT"),Chr(9),Chr(13)+Chr(10)),["],[]),"TEMP.TXT")
*--假设字段全为字符型
Use 原表名
Copy To TEMP.TXT Delimited With Tab
Strtofile(Strtran(Filetostr("TEMP.TXT"),Chr(9),Chr(13)+Chr(10)),"TEMP.TXT")
Create Table 目标表 (字段A C(20))
Append From temp.txt Delimited With Tab
[Quote=引用 17 楼 whqrzwh 的回复:]
实际运用远远超过254
[/Quote]
那就用上述程序,
OR
用N个变量生成类似
SELECT 字段1,RECNO() from 表 union SELECT 字段2,RECNO() from 表
union
SELECT 字段n,RECNO() from 表