1. 程式人生 > >Mybatis中的mapper檔案中不等於的幾種寫法

Mybatis中的mapper檔案中不等於的幾種寫法

預期執行SQL效果:select t.name form tablenme t where t.code <> 1;

第一種:轉義 &lt; < (小於) &gt; > (大於) &lt;&gt; <> (不等於) mapper檔案寫法:  select t.name form tablenme t where t.code &lt;&gt; 1;