Hi Forum!
I need to make the following query
update listas_buenafe_cab set total=(select count(*) from listas_buenafe_det where listas_buenafe_det.id_lista=listas_buenafe_cab.id_lista)
when run in the phpmyadmin, works perfectly, but when try:
sc_exec_sql(dataset, 'update listas_buenafe_cab set total=(select count(*) from listas_buenafe_det where listas_buenafe_det.id_lista=listas_buenafe_cab.id_lista)');
have the following error message:
Error
…
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dataset, ‘update listas_buenafe_cab set total=(select count() from listas_buena’ at line 1
dataset, 'update listas_buenafe_cab set total=(select count() from listas_buenafe_det where listas_buenafe_det.id_lista=listas_buenafe_cab.id_lista)’
How can it be possible?
What could it be?
many thanks!