Hi,
I have a problem in a Query syntax while converting my program from SQLite to MySQL.
In the table 'factui' there is a numeric field 'factuurnr'
In SQLite the command
is working fine, but in MySQL I get a syntax error.
Does anyone know how to make this query in MySQL?
Thanks,
Marc
I have a problem in a Query syntax while converting my program from SQLite to MySQL.
In the table 'factui' there is a numeric field 'factuurnr'
In SQLite the command
oQry=oSQL:Query( 'SELECT SUBSTR(factuurnr,1,4) FROM factui DESC GROUP BY SUBSTR(factuurnr,1,4)' )
is working fine, but in MySQL I get a syntax error.
Does anyone know how to make this query in MySQL?
Thanks,
Marc
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite