You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mybatis-user
i'm facing problem with count(*) in mybatis ... it is always returning
0...
<select id="checkGeoAreaStatusIsInActive" resultType="int"
parameterType="int">
select count(geo_area_id) from GEO_AREA
where status != 'inactive' and geo_area_id = #{value,
jdbcType=INTEGER}
</select>
i have tried to change the query as below but still facing issues.
<select id="checkGeoAreaStatusIsInActive" resultType="int"
parameterType="int">
select count(*) geo_area_id from GEO_AREA
where status != 'inactive' and geo_area_id = #{value,
jdbcType=INTEGER}
</select>
Larry Meadors
unread,
Feb 4, 2012, 11:21:32 AM2/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mybati...@googlegroups.com
Try this instead:
select count(*) as value from ...
Larry
c c
unread,
Feb 4, 2012, 8:54:51 PM2/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mybati...@googlegroups.com
first you must know if it has data in you table ?
1,you can print the sql 2, excute the sql use some db tools ,