我似乎无法弄清楚如何做到这一点。
我希望按照它们的确切顺序保留记录,但是将数据分成9条记录,例如此代码将执行的操作。如何在MS ACCESS 2007中完成此操作?
我道歉,尽管我是ABAP程序员,但我对MS ACCESS和SQL查询还是比较陌生的。
SELECT * INTO CertTable1 FROM Cert LIMIT 0,49999;
SELECT * INTO CertTable2 FROM Cert LIMIT 50000,49999;
SELECT * INTO CertTable3 FROM Cert LIMIT 100000,49999;
SELECT * INTO CertTable4 FROM Cert LIMIT 150000,49999;
SELECT * INTO CertTable5 FROM Cert LIMIT 200000,49999;
SELECT * INTO CertTable6 FROM Cert LIMIT 250000,49999;
SELECT * INTO CertTable7 FROM Cert LIMIT 300000,49999;
SELECT * INTO CertTable8 FROM Cert LIMIT 350000,49999;
SELECT * INTO CertTable9 FROM Cert LIMIT 400000,49999;
感谢您的帮助。
Waughb
答案 0 :(得分:-1)
例如
从Cert中选择top 99999 *进入CertTable9,其中id> 400000