2020-07-05から1日間の記事一覧

更新件数取得

DB

MySQL (5.6) drop table tab1;create table tab1(col1 int);insert into tab1 values(1),(2),(3);select * from tab1; update tab1 set col1 = col1 + 100 where col1 > 1; select row_count(); Oracle (12cR1) drop table tab1 purge;create table tab1(col…

バインド変数取得

DB

MySQL (5.6) drop table tab1;create table tab1(col1 int,col2 varchar(100)); insert into tab1 values(1,'A');select * from tab1; -- 1.select文 prepare stmt1 from 'select /* TEST1 */ A.*,? from tab1 A where A.col1 = ? and A.col2 = ?'; set @val…