Board index » delphi » Delphi-"Special" SQL statement needed
cl...@slip.technet.sg (cllee)
![]() Delphi Developer |
Thu, 08 Jan 1998 03:00:00 GMT
Delphi-"Special" SQL statement neededHi all, I have 2 tables linked by a key field INVNO. However, this system TABLE FIELDNAME TYPE WIDTH I want to use SQL to link the two tables together via this sql = "SELECT * FROM tbl1 a, tbl2 b WHERE a.invno = b.invno;" Given the above setup, I need to convert one of the key field sql = "SELECT * FROM tbl1 a, tbl2 b WHERE a.invno = " --- OR --- sql = "SELECT * FROM tbl1 a, tbl2 b WHERE b.invno = " where VAL() and STR() are functions for converting the parameter The problem is that I cannot seem to be able to do it. Does anyone I know I can change one of the tables' key fields to be 'compatiable' Thanks for your help in advance. 7/23/95 @ 1500 hrs |