select userId, clientId, scope, status, expiresAt, lastModifiedAt from oauth_approvals
insert into oauth_approvals
userId,clientId,scope,status,expiresAt,lastModifiedAt,#{userid},#{clientid},#{scope},#{status},#{expiresat},#{lastmodifiedat},
update oauth_approvals
clientId = #{clientid},scope = #{scope},status = #{status},expiresAt = #{expiresat},lastModifiedAt = #{lastmodifiedat},
where userId = #{userid}
update oauth_approvals
set status = #{status},
expiresat = #{expiresat}
where userid = #{userid}
and clientid = #{clientid}
and scope = #{scope}
delete from oauth_approvals where userId = #{userid}
delete from oauth_approvals where userId in
#{userid}