Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Delete an Existing Row from a Table
How To Delete an Existing Row from a Table? - MySQL FAQs - Understanding SQL INSERT, UPDATE and DELETE Statements
✍: FYIcenter.com
If you want to delete an existing row from a table, you can use the DELETE statement with a WHERE clause to identify that row. Here is good sample of DELETE statements:
mysql> INSERT INTO fyi_links (url, id)
VALUES ('www.myspace.com', 301);
Query OK, 1 row affected (0.00 sec)
mysql> SELECT id, url, notes, counts FROM fyi_links
WHERE id = 301;
+-----+-----------------+-------+--------+
| id | url | notes | counts |
+-----+-----------------+-------+--------+
| 301 | www.myspace.com | NULL | NULL |
+-----+-----------------+-------+--------+
1 row in set (0.00 sec)
mysql> DELETE FROM fyi_links WHERE id = 301;
Query OK, 1 row affected (0.00 sec)
mysql> SELECT id, url, notes, counts FROM fyi_links
WHERE id = 301;
Empty set (0.00 sec)
2007-05-11, 5040👍, 0💬
Popular Posts:
Can Java object be locked down for exclusive use by a given thread? Yes. You can lock an object by p...
What Is URI? URI (Uniform Resource Identifier) is a superset of URL. URI provides a simple and exten...
How To Enter Characters as HEX Numbers? - MySQL FAQs - Introduction to SQL Basics If you want to ent...
How to set a cookie with the contents of a textbox ? Values stored in cookies may not have semicolon...
How To Control Padding Spaces within a Table Cell? - XHTML 1.0 Tutorials - Understanding Tables and ...