MySQL

MySQLコマンドメモ②

副問い合わせhoge_table2テーブルのhoge_p1がnull値の行のidとhoge_tableのidとが等しい行をブッコ抜き select * from hoge_table where id in (select id from hoge_table2 where hoge_p1 is null); ややこし

MySQLコマンドメモ

すぐ忘れるのでメモupdate文 update hoge_table set hoge_column='hoge' where hoge_id='1'; hogeテーブルのスキーマをコピーして新しくテーブルを作る create table hoge20120122 like hoge; hogeテーブルのデータをそのままインサート INSERT INTO hoge_ba…