On 20.01.2012 23:46, Keith Clark wrote:
> On 12-01-20 05:14 PM, tobias wrote:
>> hi,
>>
>>> How would I get the MySQL last_insert_id() value into an integer
>>> variable inside gambas?
>>>
>>> I tried with
>>>
>>> CurrentID=db.exec("select last_insert_id() as last")
>>>
>>> but I get a type mismatc
On 12-01-20 05:14 PM, tobias wrote:
> hi,
>
>> How would I get the MySQL last_insert_id() value into an integer
>> variable inside gambas?
>>
>> I tried with
>>
>> CurrentID=db.exec("select last_insert_id() as last")
>>
>> but I get a type mismatch error. Expecting integer, got result.
>>
>> Thank
hi,
> How would I get the MySQL last_insert_id() value into an integer
> variable inside gambas?
>
> I tried with
>
> CurrentID=db.exec("select last_insert_id() as last")
>
> but I get a type mismatch error. Expecting integer, got result.
>
> Thanks,
>
> Keith
>
i suppose CurrentID is an integer
How would I get the MySQL last_insert_id() value into an integer
variable inside gambas?
I tried with
CurrentID=db.exec("select last_insert_id() as last")
but I get a type mismatch error. Expecting integer, got result.
Thanks,
Keith
-