PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Error: Invalid FROM statement con HExecuteSQLQuery
Error: Invalid FROM statement con HExecuteSQLQuery
Débuté par Edgar Acurio, 31 aoû. 2017 16:32 - 1 réponse
Posté le 31 août 2017 - 16:32
Saludos me encuentro desarrollando una aplicación multi-plataforma (Android, IOS) y mi base de datos la estoy realizando con SQLITE sin embargo cuando ejecuto un query como el siguiente "SELECT last_insert_rowid()".
con el siguiente código :
HExecuteSQLQuery(:dataContent,conex,hQueryWithoutCorrection,:queryString)

Obtengo el siguiente error:
"Failure initializing <tmpSource> query.
Invalid FROM statement. Check the syntax.
WLanguage function=HExecuteQuery"

esto cuando ya lo ejecuto en el dispositivo mas no en el emulador ademas la constante hQueryWithoutCorrection no esta disponible para IOS
Alguna sugerencia respecto a este tema GRACIAS
Posté le 31 août 2017 - 16:54
Hi

1. I have read your message using google translate, so I may have lost
something in translation. That said:

2. sqllite is NOT available for iOS, so you should probably use HFSQL
instead

3. SQL available on mobile is much more limited than in WinDev (and the
emulator is windev, see my article on the subject here:
http://fabriceharari.com/UK/Page_Article.awp…

4. Finally, it looks like you are trying to get the last automatic ID
value after an insert, and you can do that much more simply by just
using hadd, as the automatic ID value is available in the
File.AutomaticIDName variable just after the hadd

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com

Le 8/31/2017 à 8:32 AM, Edgar Acurio a écrit :
Saludos me encuentro desarrollando una aplicación multi-plataforma
(Android, IOS) y mi base de datos la estoy realizando con SQLITE sin
embargo cuando ejecuto un query como el siguiente "SELECT
last_insert_rowid()".
con el siguiente código :
HExecuteSQLQuery(:dataContent,conex,hQueryWithoutCorrection,:queryString)

Obtengo el siguiente error:
"Failure initializing <tmpSource> query.
Invalid FROM statement. Check the syntax.
WLanguage function=HExecuteQuery"

esto cuando ya lo ejecuto en el dispositivo mas no en el emulador ademas
la constante hQueryWithoutCorrection no esta disponible para IOS
Alguna sugerencia respecto a este tema GRACIAS