-
1
- #1
Hi,
I want to insert into a table on AS/400 using a sql statement embedded in Visual Basic. I am connecting to the database using ODBC.
Could someone please tell me if the following statement will work. I'm presuming that regular sql syntax is fine but can someone let me know if I'm wrong (do I need single quotes around my values?). I can't check myself yet because the AS/400 server is at a remote site.
Thanks in advance,
Gillian
INSERT INTO IMPOSBSTD
SELECT UCORNO,UCIVNO,UCIVDT,UCCUNO,UCORTP,UCWHLO,UCITNO,UCIVQT,UCIVQS,UCIVQA,UCRGDT,UCRGTM From OSBSTD
WHERE (((OSBSTD.UCRGDT)=19990101) AND ((OSBSTD.UCRGTM)>100000)) OR (((OSBSTD.UCRGDT)>19990101))
[sig][/sig]
I want to insert into a table on AS/400 using a sql statement embedded in Visual Basic. I am connecting to the database using ODBC.
Could someone please tell me if the following statement will work. I'm presuming that regular sql syntax is fine but can someone let me know if I'm wrong (do I need single quotes around my values?). I can't check myself yet because the AS/400 server is at a remote site.
Thanks in advance,
Gillian
INSERT INTO IMPOSBSTD
SELECT UCORNO,UCIVNO,UCIVDT,UCCUNO,UCORTP,UCWHLO,UCITNO,UCIVQT,UCIVQS,UCIVQA,UCRGDT,UCRGTM From OSBSTD
WHERE (((OSBSTD.UCRGDT)=19990101) AND ((OSBSTD.UCRGTM)>100000)) OR (((OSBSTD.UCRGDT)>19990101))
[sig][/sig]