Log in

View Full Version : Sql Command help


Kamax
11.06.2009, 11:29
Hi all


i need help:


i need one query to list all Itens ID :


Example i need to know all latests itens from server


Initial item to latest...


anyone please can help me?


Tks

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-11-2009, 11:29 AM. Открыть источник (https://web.archive.org/web/20100324121540id_/http://www.postpacific.com:80/archive/index.php/t-445.html).

Nisker
11.06.2009, 13:56
I think is something like


SELECT

,[char_id]

,[item_type]

,[amount]

,[enchant]

,[eroded]

,[bless]

,[ident]

,[wished]

,[warehouse]

,[effects]

,[skill]

,[skill_level]

,[bless_new]

FROM [lin2world].[dbo].[user_item]

ORDER by item_id


Not sure if items ids are created sequentially but I think so.

[i]Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-11-2009, 01:56 PM. Открыть источник (https://web.archive.org/web/20100324121540id_/http://www.postpacific.com:80/archive/index.php/t-445.html).

kold
11.06.2009, 15:31
You're gonna get a few hundred thousand results...not sure what the purpose of this would be.

If you want to track items, Fidow's addon to item saving stored procedures is the way to go. Uh... or if Fidow reads this, he'll probably share.

[i]Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-11-2009, 03:31 PM. Открыть источник (https://web.archive.org/web/20100324121540id_/http://www.postpacific.com:80/archive/index.php/t-445.html).

Fr3DBr
11.06.2009, 18:03
select * from user_item order by item_id asc

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-11-2009, 06:03 PM. Открыть источник (https://web.archive.org/web/20100324121540id_/http://www.postpacific.com:80/archive/index.php/t-445.html).

FidoW
11.06.2009, 21:01
You're gonna get a few hundred thousand results...not sure what the purpose of this would be.

If you want to track items, Fidow's addon to item saving stored procedures is the way to go. Uh... or if Fidow reads this, he'll probably share.

I was going to share it a few days ago but im too lazy to recreate the thread again and the mods i did to the database, dammit, and google cached already lost that.

That system is the most useful thing i did in the last 3 years for sure, im using it constanly and it save me TONS of time, i even code a small script that search items from one player between 2 dates, show all the owner changes and move the items to the original owner.

If i get advice of a theft soon and the items was not moved a lot i can reverse the trades within seconds.

[i]Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-11-2009, 09:01 PM. Открыть источник (https://web.archive.org/web/20100324121540id_/http://www.postpacific.com:80/archive/index.php/t-445.html).