3-(E-teller)使用SQL语句

来源:互联网 发布:淘宝怎么加入一淘条件 编辑:程序博客网 时间:2024/05/01 19:15

1-关于使用SQL语句

String sql = "select distinct regisgerjusticer from DUN_CASE_CIVIL order by regisgerjusticer";
           
list = getCommonManager().executeSQLQuery(sql); 

<!--- 执行SQL查询完成:size=1,

sql=select distinct regisgerjusticer from DUN_CASE_CIVIL order by regisgerjusticer

 --->

DUN_CASE_CIVIL 是真实的表名

表里regisgerjusticer字段有两条记录,但size=1只查出了一条,因为regisgerjusticer字段的值相同。

executeSQLQuery 返回的是LIST

原创粉丝点击