![]() |
![]() |
![]() |
||||
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 |
Registered User
Join Date: May 2003
Posts: 11
|
SQL Query
Anyone good at SQL here?
I am trying to make a query that replaces a tab in a column after every entry in that column. I started using trim(), but I don't think I know how to use it corrrectly. Here is what I have so far: Select fullname_ from members_ and TRIM(BOTH ' ' members_); What am i doing wrong? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Twerk That Ass
Industry Role:
Join Date: Jul 2001
Location: Lincoln, California
Posts: 2,197
|
dont do it
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Registered User
Join Date: May 2003
Posts: 11
|
Don't do it? Why? It has to be done...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
can you try explaining again what you are trying to do?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Join Date: May 2003
Posts: 11
|
Ok, I have a table members_ with a column fullname_ . The column fullname_ has a tab after every name (caused from the import of this table into this database). I want to remove this tab after every name in that column. Someone pointed me to TRIM, however I don't think I am doing that so well.
Does that make sense? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
make a backup of the table,
and then try something like this perhaps? UPDATE members_ SET fullname_=TRIM(fullname_) If you are still having problems you can hit me up on icq:33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Registered User
Join Date: May 2003
Posts: 11
|
Big thanks to WOJ on this, looks like its running perfectly!
Thanks again!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
WOJ gives advice? WOW!
Also, you can TEST it first by doing this, SELECT TRIM(fullname_) from members_ SET |
![]() |
![]() ![]() ![]() ![]() ![]() |