Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Querry Delete Rows

Joined
Oct 14, 2008
Messages
1,277
Reaction score
249
Hello,
Well i need an querry script for mssql to delete the rows from two cloumns after 12 hour from when they added in the table !
I hope some one can help me !
 
Elite Diviner
Joined
Feb 12, 2008
Messages
439
Reaction score
175
A google can help you on this issue practically give a script ready cause u never learn anything about SQL stuff's. That's basics to have or be an administrator of a server.
 
Upvote 0
Graveyard Networks
Joined
Dec 19, 2005
Messages
472
Reaction score
264
First thing you need sir is find the query of deleting rows, are you trying to delete rows or data on that rows?...

After finding the query you can create a job for it to run according to your schedule or find another query or trigger.
 
Upvote 0
Junior Spellweaver
Joined
Oct 5, 2008
Messages
191
Reaction score
21
@S37uP!Update:
delete from something where DATEDIFF(hour, date_col, getdate())>12

@jumong:
You cant delete "data" from a row, delete command dont work like that.
Its all or nothing.
 
Last edited:
Upvote 0
Back
Top