<sql-caseid="select_with_expression"value="SELECT o.order_id + 1 * 2 as exp FROM t_order AS o ORDER BY o.order_id"/>
<sql-caseid="select_with_date_function"value="SELECT DATE(i.creation_date) AS creation_date FROM `t_order_item` AS i ORDER BY DATE(i.creation_date) DESC"db-types="MySQL"/>
<sql-caseid="select_with_regexp"value="SELECT * FROM t_order_item t WHERE t.status REGEXP ? AND t.item_id IN (?, ?)"db-types="MySQL"/>
<sql-caseid="select_with_case_expression"value="select t.*,o.item_id as itemid,(case when t.status = 'init' then '已启用' when t.status = 'failed' then '已停用' end) as stateName
from t_order t left join t_order_item as o on o.order_id =t.order_id where t.order_id=1000 limit 1"db-types="MySQL,H2"/>