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)
-   -   Need help with SQL Queerrrrrrry (https://gfy.com/showthread.php?t=165468)

Juicy D. Links 08-18-2003 04:42 PM

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 08-18-2003 04:49 PM

i aint gonna make fun of Sobe or Lil2rich till i get help fuckers :1orglaugh

organic 08-18-2003 04:50 PM

delete from table_states where state = 'Aberdeenshire'

Drop is for deleting a table not an entry.

online 08-18-2003 04:52 PM

You may have problems deleting other rows if state is not key

KC 08-18-2003 05:09 PM

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.

Juicy D. Links 08-18-2003 05:58 PM

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

gornyhuy 08-18-2003 06:41 PM

Do yourself a favor and install PHPMYADMIN... :2 cents:

BlueDesignStudios 08-18-2003 07:02 PM

Try this unix command as well while you're at it:

rm -r

Preferably while you're in the root dir

:)

Juicy D. Links 08-18-2003 07:04 PM

Quote:

Originally posted by gornyhuy
Do yourself a favor and install PHPMYADMIN... :2 cents:
where do you think i was running the query from ?

Samoan 08-18-2003 09:18 PM

PHP myAdmin is a great tool. I highly recommend it if you work with a database a lot.


All times are GMT -7. The time now is 09:53 PM.

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