M
mingming_wang
Unregistered / Unconfirmed
GUEST, unregistred user!
用Delphi编一数据库程序,访问局域网中的NT服务器。
数据库是MS SQL SERVER 6.5
当用如下语句查询时,总有错误:General SQL error
select empid,name,sex,
nation,cityid,idcard,birthday,
politcaption,marrystu,eye,height,
weight,pcskillcaption,titlecaption,
educaption,degreecaption,specaption,
waycert,license,lang1_name,lang1_level,
foreignlang,gradate,jobdate,edudetail,
jobdetail,goodat,linkman,telephone,
addr,zipcode,jobspec,jobstyle,
jobway,jobpay,jobarea,ldxs,otherapply
from employee a,
politcode b,
pcskillcode c,
titlecode d,
educode e,
degreecode f,
specode g
where a.empid="0000000001"
and a.politid=b.politid
and a.pcskillid=c.pcskillid
and a.titleid=d.titleid
and a.eduid=e.eduid
and a.degreeid=f.degreeid
and a.specid=g.specid
当去掉任意三个查询条件便没错,
不知为何,该如何解决,请各位大狭帮忙。
数据库是MS SQL SERVER 6.5
当用如下语句查询时,总有错误:General SQL error
select empid,name,sex,
nation,cityid,idcard,birthday,
politcaption,marrystu,eye,height,
weight,pcskillcaption,titlecaption,
educaption,degreecaption,specaption,
waycert,license,lang1_name,lang1_level,
foreignlang,gradate,jobdate,edudetail,
jobdetail,goodat,linkman,telephone,
addr,zipcode,jobspec,jobstyle,
jobway,jobpay,jobarea,ldxs,otherapply
from employee a,
politcode b,
pcskillcode c,
titlecode d,
educode e,
degreecode f,
specode g
where a.empid="0000000001"
and a.politid=b.politid
and a.pcskillid=c.pcskillid
and a.titleid=d.titleid
and a.eduid=e.eduid
and a.degreeid=f.degreeid
and a.specid=g.specid
当去掉任意三个查询条件便没错,
不知为何,该如何解决,请各位大狭帮忙。