Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: CapriSkye on November 06, 2004, 01:45:06 PM

Title: How to clear the holiday data?
Post by: CapriSkye on November 06, 2004, 01:45:06 PM
does anyone know the sql command to clear the holiday data? not the table itself, but the data inside it. thanks
Title: Re: How to edit holidays to match my country, not US
Post by: Grudge on November 06, 2004, 01:56:58 PM
EMPTY TABLE tablename
Title: Re: How to edit holidays to match my country, not US
Post by: [Unknown] on November 06, 2004, 05:21:33 PM
TRUNCATE TABLE, you mean?

-[Unknown]
Title: Re: How to edit holidays to match my country, not US
Post by: CapriSkye on November 06, 2004, 05:44:44 PM
i want to clear all the holidays in calendar_holidays table, like ben mentioned in his post. so if i execute the sql file in mysql, it would clear the data first, then insert all the new holidays.

EMPTY doesn't seem to work, and i can't find anything related to that in mysql manual.
this is what i did,
EMPTY TABLE {$db_prefix}calendar_holidays
INSERT INTO......
Title: Re: How to edit holidays to match my country, not US
Post by: [Unknown] on November 06, 2004, 05:53:44 PM
TRUNCATE TABLE real_prefix_calendar_holidays;

Remember, MySQL doesn't magically recognize "{$db_prefix}".

-[Unknown]
Title: Re: How to edit holidays to match my country, not US
Post by: CapriSkye on November 06, 2004, 06:07:24 PM
yeah i just found that out right now, but with errors where INSERT is, so i guess i have to change {db_prefix} too. thanks unknown.
Title: Re: How to clear the holiday data?
Post by: A.M.A on November 06, 2004, 06:35:46 PM
Split into a new topic.