discusmania
IS-IT--Management
hi guys.....
I want to get the maximum value of item_id and add 1 to it to get the new request item id. i use
sql=select max("item_id) as item_id from act_item.
it works fine if there's records in that table. but if there's no records i want the item_id to be initiate to 0
how to do that.
Thanks a lot
RON
I want to get the maximum value of item_id and add 1 to it to get the new request item id. i use
sql=select max("item_id) as item_id from act_item.
it works fine if there's records in that table. but if there's no records i want the item_id to be initiate to 0
how to do that.
Thanks a lot
RON