C Chicao99 Member Licensed User Longtime User Mar 12, 2023 #1 Hi. I'm doing some tests with the SD_SQL from @Star-Dust but I didn't figure out how to get a return from the ExecNonQuery function, any idea? Thank you.
Hi. I'm doing some tests with the SD_SQL from @Star-Dust but I didn't figure out how to get a return from the ExecNonQuery function, any idea? Thank you.
M Mahares Expert Licensed User Longtime User Mar 12, 2023 #2 Chicao99 said: but I didn't figure out how to get a return from the ExecNonQuery function Click to expand... I have not used SD_SQL. But, any ExecNONquery does not return a value. That is why it is called NonQuery. It is usually used to INSERT, DELETE , CREATE or UPDATE Upvote 0
Chicao99 said: but I didn't figure out how to get a return from the ExecNonQuery function Click to expand... I have not used SD_SQL. But, any ExecNONquery does not return a value. That is why it is called NonQuery. It is usually used to INSERT, DELETE , CREATE or UPDATE
C Chicao99 Member Licensed User Longtime User Mar 12, 2023 #3 Mahares said: I have not used SD_SQL. But, any ExecNONquery does not return a value. That is why it is called NonQuery. It is usually used to INSERT, DELETE , CREATE or UPDATE Click to expand... Thanks for answering. What I really need is to know if it worked or not. In the LOG I can see that, but how do I do that in the code? Upvote 0
Mahares said: I have not used SD_SQL. But, any ExecNONquery does not return a value. That is why it is called NonQuery. It is usually used to INSERT, DELETE , CREATE or UPDATE Click to expand... Thanks for answering. What I really need is to know if it worked or not. In the LOG I can see that, but how do I do that in the code?
Star-Dust Expert Licensed User Longtime User Mar 14, 2023 #4 Chicao99 said: Hi. I'm doing some tests with the SD_SQL from @Star-Dust but I didn't figure out how to get a return from the ExecNonQuery function, any idea? Thank you. Click to expand... Update to version 0.04 Upvote 0
Chicao99 said: Hi. I'm doing some tests with the SD_SQL from @Star-Dust but I didn't figure out how to get a return from the ExecNonQuery function, any idea? Thank you. Click to expand... Update to version 0.04
S Smee Well-Known Member Licensed User Longtime User Feb 26, 2024 #5 Star-Dust said: Update to version 0.04 Click to expand... I believe to get a return on records affected you use something like B4X: Dim ctr As Int ctr= DBase.sql.ExecQuerySingleResult("select changes() as xval") Log(ctr) Upvote 0
Star-Dust said: Update to version 0.04 Click to expand... I believe to get a return on records affected you use something like B4X: Dim ctr As Int ctr= DBase.sql.ExecQuerySingleResult("select changes() as xval") Log(ctr)