以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- SQL语句生成一个表格 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=10311) |
-- 作者:jxkqf -- 发布时间:2011/5/30 10:17:00 -- SQL语句生成一个表格 现有如下SQL语句,希望能在FOXTABLE中生成一个表格,不知如何做?
insert into tblrsxx(GZLBMC,DWBM,BMMC,SFZ,XM,XB,GL,XLMC,XWMC,MZMC,RYBM,CSRQ,CSD,YJ,RYXZ,ZZZKMC,ZW,JBMC,JBDM,GZJB,RZSJNY,ZJYCTZSJ,YRZW,YRZSJNY,CJGZSJ,LBDWSJ,DZYSXLSJ,GZTFNY,LTSJ,LTQZW,KZQDMC,KMBM,JSBJ,RQ,GK,YHBM,YHZH,PXJBXH,BY1,BY2,BY3,BY4,BY5,BY6,BY7,BY8,BY9,BY10,RSXZ,GZXZ,BZQK,DWBS,ZGDW,L_ZWDJDM,BZLB,PROGRAM,JZDM,ZRYY,JRYY,JRXTSJ,WDWDRSJ,RYZXNY,YSNYBZ,YDWBM,L_ZWLBDM,RYDCNY,CZBJ) values(\'其他\',\'JX0001000\',\'002\',\'612729192701024829\',\'刘珍\',\'女\',0,\'XL--\',\'XW--\',\'MZ--\',\'0000QT021900200078118\',NULL,NULL,NULL,\'XZ01\',\'ZZ--\',NULL,\'JB--\',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'QD--\',\'002001001001\',\'0\',\'2011-05-05\',\'GK01\',\'01\',\'050501100078118\',118,\'0000QT02190020007811\',NULL,NULL,NULL,\'stencil601\',0,0,0,0,0,\'4\',\'4\',\'1\',\'ZT01\',\'JX0001\',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'0\',NULL,NULL,NULL,\'00100000000000000000\') |
insert into tblrsxx(GZLBMC,DWBM,BMMC,SFZ,XM,XB,GL,XLMC,XWMC,MZMC,RYBM,CSRQ,CSD,YJ,RYXZ,ZZZKMC,ZW,JBMC,JBDM,GZJB,RZSJNY,ZJYCTZSJ,YRZW,YRZSJNY,CJGZSJ,LBDWSJ,DZYSXLSJ,GZTFNY,LTSJ,LTQZW,KZQDMC,KMBM,JSBJ,RQ,GK,YHBM,YHZH,PXJBXH,BY1,BY2,BY3,BY4,BY5,BY6,BY7,BY8,BY9,BY10,RSXZ,GZXZ,BZQK,DWBS,ZGDW,L_ZWDJDM,BZLB,PROGRAM,JZDM,ZRYY,JRYY,JRXTSJ,WDWDRSJ,RYZXNY,YSNYBZ,YDWBM,L_ZWLBDM,RYDCNY,CZBJ) values(\'其他\',\'JX0001000\',\'002\',\'610327193705092923\',\'高兰\',\'女\',0,\'XL--\',\'XW--\',\'MZ--\',\'0000QT021900200078589\',NULL,NULL,NULL,\'XZ01\',\'ZZ--\',NULL,\'JB--\',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'QD--\',\'002001001001\',\'0\',\'2011-05-05\',\'GK01\',\'01\',\'050501100078589\',589,\'0000QT02190020007858\',NULL,NULL,NULL,\'stencil601\',0,0,0,0,0,\'4\',\'4\',\'1\',\'ZT01\',\'JX0001\',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'0\',NULL,NULL,NULL,\'00100000000000000000\') |
insert into tblrsxx(GZLBMC,DWBM,BMMC,SFZ,XM,XB,GL,XLMC,XWMC,MZMC,RYBM,CSRQ,CSD,YJ,RYXZ,ZZZKMC,ZW,JBMC,JBDM,GZJB,RZSJNY,ZJYCTZSJ,YRZW,YRZSJNY,CJGZSJ,LBDWSJ,DZYSXLSJ,GZTFNY,LTSJ,LTQZW,KZQDMC,KMBM,JSBJ,RQ,GK,YHBM,YHZH,PXJBXH,BY1,BY2,BY3,BY4,BY5,BY6,BY7,BY8,BY9,BY10,RSXZ,GZXZ,BZQK,DWBS,ZGDW,L_ZWDJDM,BZLB,PROGRAM,JZDM,ZRYY,JRYY,JRXTSJ,WDWDRSJ,RYZXNY,YSNYBZ,YDWBM,L_ZWLBDM,RYDCNY,CZBJ) values(\'其他\',\'JX0001000\',\'002\',\'612729194409220047\',\'曹兰\',\'女\',0,\'XL--\',\'XW--\',\'MZ--\',\'0000QT021900200087036\',NULL,NULL,NULL,\'XZ01\',\'ZZ--\',NULL,\'JB--\',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'QD--\',\'002001001001\',\'0\',\'2011-05-05\',\'GK01\',\'01\',\'050501100087036\',36,\'0000QT02190020008703\',NULL,NULL,NULL,\'stencil601\',0,0,0,0,0,\'4\',\'4\',\'1\',\'ZT01\',\'JX0001\',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'0\',NULL,NULL,NULL,\'00100000000000000000\') |
狐爸还是没看懂我的意思。
假如现有如下三条SQL语句:
insert into rssj(dw,xm,tel) values(\'人事局\',\'李丽丽\',\'8123056\')
insert into rssj(dw,xm,tel) values(\'教育局\',\'高海军\',\'8123614\')
insert into rssj(dw,xm,tel) values(\'建设局\',\'王晓刚\',\'8123226\')
我的目标是:
利用上面三条现成的SQL语句的内容,自动在FOXTABLE中生成如下表格:
dw xm tel
人事局 李丽丽 8123056
教育局 高海军 8123614
建设局 王晓刚 8123226
请问如何实现?
Insert Into 是不能生成表的,是在现有的表中插入行。
要生成表,请请参考:
http://help.foxtable.com/topics/2122.htm
这个和Insert Into 没关系,哪怕是写成
hello to ssssss(dw,xm,tel) values(\'人事局\',\'李丽丽\',\'8123056\')都可以。
只是现在有个现成文本文件,里面有大量的类似上面的SQL语句,我想用这个语句里面的内容翻译生成一个有意义的表格数据。
将其转换成excel文件吧