rianeiromiron
Programmer
Hi all!!!
I need to retrieve data from a SQL database.
I have already established the connection, and I am able to copy the data in the sql table to one local table, using the following code
ConnStr = 'dsn=MYSQL;uid=myuser;pwd=mypassword'
Handle = SQLStringConnect( ConnStr )
SQLExec ( Handle, "SELECT * FROM MYTABLE" )
COPY TO MYLOCALTABLE
Something strange is happening:
Correct data is the following
PersonalCode Name
10 Peter
11 Erick
12 Travis
13 Elliot
and so on.....
on MYLOCALTABLE I get
PersonalCode Name
9 Peter
10 Erick
11 Travis
12 Elliot
So, the codes I get are the real codes minus 1.
Any ideas on what's going on?
I need to retrieve data from a SQL database.
I have already established the connection, and I am able to copy the data in the sql table to one local table, using the following code
ConnStr = 'dsn=MYSQL;uid=myuser;pwd=mypassword'
Handle = SQLStringConnect( ConnStr )
SQLExec ( Handle, "SELECT * FROM MYTABLE" )
COPY TO MYLOCALTABLE
Something strange is happening:
Correct data is the following
PersonalCode Name
10 Peter
11 Erick
12 Travis
13 Elliot
and so on.....
on MYLOCALTABLE I get
PersonalCode Name
9 Peter
10 Erick
11 Travis
12 Elliot
So, the codes I get are the real codes minus 1.
Any ideas on what's going on?