delphi7 sql语句过长怎么办
展开全部
可以换行,加上引号和加号.
例如: DMForm.SManage.SQL.Add('SELECT SMANAGE.DOC_NO,SMANAGE.SNO,STUDENTS.SNAME,SMANAGE.BNO,' +
'BOOK.BNAME,SMANAGE.BORROW,SMANAGE.RETURN,SMANAGE.BTIME,SMANAGE.RTIME '+
'FROM SMANAGE INNER JOIN STUDENTS ON SMANAGE.SNO=STUDENTS.SNO ' +
'INNER JOIN BOOK ON SMANAGE.BNO=BOOK.BNO ORDER BY DOC_NO');
例如: DMForm.SManage.SQL.Add('SELECT SMANAGE.DOC_NO,SMANAGE.SNO,STUDENTS.SNAME,SMANAGE.BNO,' +
'BOOK.BNAME,SMANAGE.BORROW,SMANAGE.RETURN,SMANAGE.BTIME,SMANAGE.RTIME '+
'FROM SMANAGE INNER JOIN STUDENTS ON SMANAGE.SNO=STUDENTS.SNO ' +
'INNER JOIN BOOK ON SMANAGE.BNO=BOOK.BNO ORDER BY DOC_NO');
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询