GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PLEASE Help, Mysql question (https://gfy.com/showthread.php?t=179113)

jeroman 09-24-2003 12:02 PM

PLEASE Help, Mysql question
 
I need to "empty" a field within a table.
How do I do that ? (truncet)

I can empty the table itself but there's
20 other fields I don't want to "empty"

DrGuile 09-24-2003 12:03 PM

probably not the best way... but

update <tablename>
set <fieldname> = ""

if that doesnt work, add

where 1 = 1

Stud Money 09-24-2003 12:03 PM

Could ya not drop the field from the table then re-add it?

Babaganoosh 09-24-2003 12:05 PM

UPDATE whatever SET field='' WHERE field !='';


All times are GMT -7. The time now is 05:30 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123