Sub Main
Dim connection As long
Dim retcode As Variant
Dim outputstr,query as string
Dim out(1 to 1,1 to 13) as variant
connection = SQLOpen("DSN=book;UID=sa;PWD=sa")
query = "select * FROM (select * from book_ID a where CustNo = '0001' order by orderNO desc) WHERE ROWNUM = 1"
retcode = SQLExecQuery(connection,query) '订单号格式为:200604070531H
Sub Main
Dim connection As long
Dim retcode As Variant
Dim outputstr,query as string
Dim out(1 to 1,1 to 13) as variant
connection = SQLOpen("DSN=book;UID=sa;PWD=sa")
query = "select * FROM (select * from book_ID a where CustNo = '0001' order by orderNO desc) WHERE ROWNUM = 1"
retcode = SQLExecQuery(connection,query) '订单号格式为:200604070531H
Sub Main
Dim connection As long
Dim retcode As Variant
Dim outputstr,query as string
Dim out(1 to 1,1 to 1) as variant
connection = SQLOpen("DSN=book;UID=sa;PWD=sa")
query = "select * FROM (select * from book_ID a where CustNo = '0001' order by orderNO desc) WHERE ROWNUM = 1"
retcode = SQLExecQuery(connection,query) '订单号格式为:200604070531H