insert into petinfo (pet_name , pet_sex ,pet_strength ,pet_cute , pet_love ,pet_intro ,
pet_owner_name , pet_owner_email , pet_password , pet_pic , pet_type ) values
( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?);select @@identity这条语句是sql server 语言中的写法 , 我在后面 需要 rs = pstmt.executeQuery(); 再从rs取出那个唯一的值 , 标识列 但是我但在用的是mySQL 数据库 在MySQL 中这样的语句该怎么写呢?
pet_owner_name , pet_owner_email , pet_password , pet_pic , pet_type ) values
( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?);select @@identity这条语句是sql server 语言中的写法 , 我在后面 需要 rs = pstmt.executeQuery(); 再从rs取出那个唯一的值 , 标识列 但是我但在用的是mySQL 数据库 在MySQL 中这样的语句该怎么写呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货