mybatis的where 1=1的做用

1=1 永真, 1<>1 永假。 select * from sys_voter where 1<>1 這句查詢出來的是 只要表結構不要表數據; select * from sys_voter t where 1=1 查詢所有數據 至關於 select * from sys_voter t ; 那麼這句的話有啥做用呢?? sql語句a : select * from sys_voter t
相關文章
相關標籤/搜索