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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-18-2003, 04:42 PM   #1
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Need help with SQL Queerrrrrrry

INSERT INTO table_states (state, code, country_code) VALUES ('Aberdeenshire','ABd','GB');


Ok if i want to drop this country would i make it look like this?

DROP table_states (state, code, country_code) VALUES ('Aberdeenshire','ABd','GB');
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 04:49 PM   #2
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
i aint gonna make fun of Sobe or Lil2rich till i get help fuckers
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 04:50 PM   #3
organic
Registered User
 
Join Date: May 2003
Location: Passed Out In Jersey
Posts: 16
delete from table_states where state = 'Aberdeenshire'

Drop is for deleting a table not an entry.
organic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 04:52 PM   #4
online
Registered User
 
Join Date: Mar 2003
Location: Uruguay
Posts: 22
You may have problems deleting other rows if state is not key
online is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 05:09 PM   #5
KC
Confirmed User
 
Industry Role:
Join Date: Jan 1995
Posts: 2,417
Quote:
Originally posted by organic
delete from table_states where state = 'Aberdeenshire'

Drop is for deleting a table not an entry.
One other note...

Delete from [tablename];

without a where clause, will empty your entire table. Make sure you're really careful when deleting records.
__________________

Jupiter Hosting, Inc.
Vice President, Business Development
kc (AT) jupiterhosting.com

Last edited by KC; 08-18-2003 at 05:14 PM..
KC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 05:58 PM   #6
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Quote:
Originally posted by KC


One other note...

Delete from [tablename];

without a where clause, will empty your entire table. Make sure you're really careful when deleting records.
Thanks KC and others. Yeah i backed it up then fucked around with it till i got it.

SQl queries make me hard for some reason
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 06:41 PM   #7
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
Do yourself a favor and install PHPMYADMIN...
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 07:02 PM   #8
BlueDesignStudios
Confirmed User
 
Industry Role:
Join Date: Feb 2003
Location: Australia
Posts: 9,492
Try this unix command as well while you're at it:

rm -r

Preferably while you're in the root dir

__________________

Blue Design Studios - Adult Design Specialists!
Email me for a free quote: [email protected]
BlueDesignStudios is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 07:04 PM   #9
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Quote:
Originally posted by gornyhuy
Do yourself a favor and install PHPMYADMIN...
where do you think i was running the query from ?
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2003, 09:18 PM   #10
Samoan
Confirmed User
 
Join Date: Aug 2003
Location: Los Angeles, CA
Posts: 203
PHP myAdmin is a great tool. I highly recommend it if you work with a database a lot.
__________________
Samoan
Samoan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.