mybatis的sql映射配置文件

 

 

插入后返回ID

 

 select last_insert_id() as ID from users limit 1

 

 

 

 

"http://mybatis.org/dtd/mybatis-3-mapper.dtd">

 

 

 

 

 

 

 

 

URL_ID as urlId,url,moduleId,state,mark

 

 

 

SELECT FLOOR(1 + (RAND() * 1000000));

insert into table values(xx,xx);

 

 

 

 

你可能感兴趣的:(mybatis)