Quantcast
Channel: database – blog.azwan.net
Viewing all articles
Browse latest Browse all 16

Simple yet useful SQL statement

$
0
0

Mostly for MySQL

To duplicate a table:

CREATE TABLE new_table LIKE old_table;

To replace some character in a field value:

update TABLENAME set FIELDNAME = replace (FIELDNAME, searchstr, replacestr)

 


Viewing all articles
Browse latest Browse all 16

Trending Articles