或条件查询
queryWrapper.and(Wrapper -> Wrapper.eq("taskid",taskid).or().eq("testtaskid",taskid));
sql返回map对象 时间戳转换问题
date_format(ftt_tasktest.taskstarttime, '%Y-%m-%d %H:%i:%s') as taskstarttime,
mapper中不等于的表达方式
select * from test where id<>1;
但是mybatis报错 <> 应该转义 <>
select * from test where id <> 1;
xml中比较表达式
< < 小于号
> > 大于号
& & 和
' ' 单引号
" " 双引号
<= <= 小于等于
>= >= 大于等于
sql查询表字段方法
SELECT * FROM information_schema.`COLUMNS` WHERE TABLE_SCHEMA = 'database_name' AND Table_Name = 'table_name'