K e o u g h Posted July 23, 2014 Posted July 23, 2014 Hello, as the title says, how can i truncate a table like picklog in script command? like query_sql? its like making a menu in NPC like: "Reset Picklog" "Reset Zenylog" if click the picklog the whole picklog table will reset or truncate. anyone can help me please? thank you in advance! Quote
Capuche Posted July 23, 2014 Posted July 23, 2014 prontera,150,150,5 script jopijip 75,{ setarray .@table$, "zenylog", "picklog"; .@s = select( "truncate zenylog", "truncate picklog" ) -1; query_logsql "truncate table `"+ .@table$[.@s] +"`"; mes "you truncate table "+ .@table$[.@s]; close; } Quote
Capuche Posted July 26, 2014 Posted July 26, 2014 alter table drop column x; I think he wants to delete the value in 1 column lol Use update sql command and set the default value (google please) Quote
Question
K e o u g h
Hello, as the title says, how can i truncate a table like picklog in script command? like query_sql?
its like making a menu in NPC like:
"Reset Picklog"
"Reset Zenylog"
if click the picklog the whole picklog table will reset or truncate.
anyone can help me please? thank you in advance!
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.