hoodwink.d enhanced
 

juretta.com

MySQL Cheat Sheet | June 24, 2005-->

June 24, 2005
mysql> SHOW Table Status;
mysql> SHOW INDEX FROM table;
mysql> SELECT @var := MAX(irgendwas) FROM table;
mysql> EXPLAIN SELECT ....
mysql> SHOW FIELDS FROM table;
Multiple Update Syntax
mysql>UPDATE boutique_locator_shops AS bl,
boutiques AS b SET bl.time_open_1 = b.Open1,
bl.time_open_2 = b.Open2,
bl.time_open_3 = b.Open3 WHERE b.Country = bl.country AND b.City = bl.city AND b.Fax = bl.fax
UTF-8
mysql>SET names utf8;
Empty table
mysql>TRUNCATE TABLE tbl_name
reset auto_increment
mysql>ALTER TABLE tbl_name AUTO_INCREMENT = 0
@10:56 | Comments: 0 | Tags: Database (4), MySQL (5)

Diggman

About

juretta.com is the personal workspace of Stefan Saasen. You can send him an email or read more about this site in the „About“ section.

« Previous entry

Order symlink
posted over 3 years ago

» Next entry

Eclipse Plugins
posted over 3 years ago

Recent comment

On: “New Zealand Daylight Saving Time Change: Mac OS X and Java

very usefull,thanks,i linked it on my blog ispig:hobix

posted 5 months ago by foxcamel

Look!

Latest links  RSS  

More...