![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Join Date: Oct 2002
Location: Norway or UK or...damn, where am I
Posts: 356
|
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" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2002
Posts: 2,025
|
probably not the best way... but
update <tablename> set <fieldname> = "" if that doesnt work, add where 1 = 1
__________________
LiveBucks / Privatefeeds - Giving you money since 1999 Up to 50% Commission! 25% Webmaster Referal Powered by Gamma |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Join Date: Sep 2003
Location: Somewhere between my monitor and my chair
Posts: 3,214
|
Could ya not drop the field from the table then re-add it?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
UPDATE whatever SET field='' WHERE field !='';
|
![]() |
![]() ![]() ![]() ![]() ![]() |