2011-05-26から1日間の記事一覧

SQL Server 2008、MySQLのinsert ignore相当の処理がしたい

if。 if not exists(select * from the_table where pk=${PRIMARY_KEY}) insert into the_table(pk,...) values(${PRIMARY_KEY},...) 参照 http://www.xaprb.com/blog/2005/09/25/insert-if-not-exists-queries-in-mysql/ 他にもmutex table使ったテクニック…