الموقع العربي الاول للعبة Silkroad Online

الموقع العربي الاول للعبة Silkroad Online (https://silkroad4arab.com/vb/index.php)
-   قسم المواضيع المكررة و المخالفة (https://silkroad4arab.com/vb/forumdisplay.php?f=58)
-   -   مفيش query عشان اعرف id الافتار عشان مش عارف الاقيه في الRefcommon (https://silkroad4arab.com/vb/showthread.php?t=497424)

spider560 20-04-2013 06:22 PM

مفيش query عشان اعرف id الافتار عشان مش عارف الاقيه في الRefcommon
 
مفيش query عشان اعرف id الافتار عشان مش عارف الاقيه في الRefcommon ?

TYKE 20-04-2013 07:10 PM

كود PHP:


use sro_vt_shard
declare @commonid int
declare @itemlinkid int
set 
@commonid = (select id from _refobjcommon where id = (select max(idfrom _refobjcommon))+1
set 
@itemlinkid = (select id from _refobjitem where id = (select max(idfrom _refobjitem))+1
print 'common id you have to use: '+cast(@commonid as varchar(15))
print 
'common link id you have to use: '+cast(@itemlinkid as varchar(15)) 



الساعة الآن 11:05 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.