[Bug]: The fourth round of SQL parser verification bug
Ifffff opened this issue · comments
The fourth round of SQL parser verification bug
select
ip_id,
ip_role_id,
tnt_inst_id,
partner_id,
vostro_no,
rel_vostro_no,
rel_order_no,
payer_bank_org_code,
payer_bank_branch_org_code,
payer_card_no,
payer_name,
payee_bank_org_code,
payee_card_no,
payee_name,
amount,
currency,
trans_time,
vostro_process_state,
matched_amt,
matched_amt_currency,
refunded_amt,
refunded_amt_currency,
refunding_amt,
refunding_amt_currency,
business_source_stm,
ext_content,
gmt_create,
gmt_modified
from
se_td_vostro_record_020
where
tnt_inst_id = 'mybkc1cn'
and ip_id = '226620000718704203'
and ip_role_id = '226610000063956599209'
and substr(
regexp_substr(
ext_content, '"main_card_id_key":"[0-9]*'
),
21
) = '8888888339987438'
and trans_time >= '2020-01-01 00:00:00'
and trans_time <= '2020-01-01 00:00:00'
order by
gmt_create desc
limit
0,
5
select
min(id) min,
max(id) max,
count(id) count
from
beyond_black_list
where
(
status = 'a'
or status = '1'
)
and modify_time >= '2019-07-08 23:24:57'
and modify_time <= '2019-07-08 23:25:21'
and (
validity_time is null
or validity_time >= '2019-07-08 23:25:21'
)
select
count(0)
from
(
select
s.name as sprintname,
s.id as sprintid,
p.id as projectid,
p.name as projectname,
s.status as sprintstatus,
(
select
gmt_modified
from
monalisa_report_task
where
sprint_id = s.id
order by
gmt_modified desc
limit
1
) as gmt_modified,
(
select
nickname
from
acl
where
acl_id = s.acl_id
and level = 'owner'
limit
1
) as nickname
from
sprint s
left join project p on s.project_id = p.id
where
s.status != 'deleted'
and s.env = 'test'
and s.acl_id in ('1')
and (
s.name like '%卡%' || p.name like '%卡%'
)
order by
s.id desc
) as biu
select a.table_name,
a.owner as schema_name,
a.num_rows,
b.comments description,
to_char(c.created, 'yyyy-mm-dd hh24:mi:ss') create_time,
to_char(c.last_ddl_time, 'yyyy-mm-dd hh24:mi:ss') last_ddl_time
from dba_tables a
left join dba_tab_comments b on a.owner = b.owner
and a.table_name = b.table_name
, dba_objects c
where a.owner = c.owner
and a.table_name = c.object_name
and c.subobject_name is null
and c.object_type = 'table'
and a.owner = 'omsuser'
group by a.table_name, a.owner, a.num_rows, b.comments, c.created, c.last_ddl_time
select date(convert_tz(m.gmt_create, @@session.time_zone, '-04:00')) as date,
count(m.id) as message_count, count(mf.id) as feedback_count
from doraemon_dify_messages m
left join doraemon_dify_message_feedbacks mf on mf.message_id=m.message_id
where m.app_id = '1'
and m.gmt_create >= '2023-08-04 17:48:00' and m.gmt_create < '2023-08-11 17:48:00' group by date order by date
select @@version_comment, @@version, ob_version() limit 1
select
aic.index_name,
aic.column_position,
aic.column_name,
aic.descend,
decode(ai.partitioned, 'yes', 'true', 'false') as partitioned,
decode(ai.uniqueness, 'unique', 'true', 'false') as uniqueness,
decode(ai.index_type,
'function-based normal',
'function_normal',
'function-based normal/rev',
'function_normal_rev',
'function-based bitmap',
'function_bitmap',
'iot - top',
'iot',
'normal/rev',
'normal_rev',
ai.index_type
) as index_type,
decode(ac.constraint_type, 'p', 'true', 'false') as primary
from
dba_ind_columns aic,
dba_indexes ai
left join dba_constraints ac on ac.index_name = ai.index_name
and ac.owner = ai.owner
and ac.table_name = ai.table_name
where
aic.index_owner = ai.owner
and aic.index_name = ai.index_name
and aic.table_name = ai.table_name
and ai.table_owner = 'qiluo02'
and ai.table_name = 'bmsql_history'
and ai.table_type = 'table'
and ai.status != 'invalid'
order by
aic.index_name,
aic.column_position
select
partitioning_type,
subpartitioning_type,
interval
from
dba_part_tables
where
owner = 'qiluo02'
and table_name = 'bmsql_history'
select * from irgl_wallet_balance where legal_entity = '9912' and currency ='586' and account_date >= '20190501' and account_date <= '20190530' and variance !='0' order by account_date desc,id
select * from tpc_a where rownum <= 20 fetch next 200 rows only
select
rs_approval.id,
rs_approval.url,
rs_approval.out_biz_id,
rs_approval.type,
rs_approval.ref_source,
rs_approval.context,
rs_approval.status,
rs_approval.execute_status,
rs_approval.failed_reason,
rs_approval.operation_log_indices,
rs_approval.submitter_id,
rs_approval.submitter_account,
rs_approval.submitter_nick_name,
rs_approval.submitter_real_name,
rs_approval.require_permission_code,
rs_approval.require_permission_conditions,
rs_approval.title,
rs_approval.brief,
rs_approval.render_datas,
rs_approval.gmt_create,
rs_approval.gmt_modified
from
rs_approval
where out_biz_id = '12cb9572-b4c2-4a4f-9547-daa9c8e97e63'
limit 0, 2147483647
select distinct distinct fuzz_rule_issue.extend_info as anon_1, fuzz_rule_issue.id as fuzz_rule_issue_id
from fuzz_rule_issue
where fuzz_rule_issue.issue_status = '0' or fuzz_rule_issue.issue_status = '2' order by fuzz_rule_issue.extend_info, fuzz_rule_issue.id, fuzz_rule_issue.gmt_modified desc
limit 0, 10
update market_rate_snapshot51$cf source
set source.v = replace(source.v, '"expiretime"', '"expiretime_deprecated"')
where exists (
select 1
from (
select k, q, min(t) as t
from market_rate_snapshot51$cf
where k in ('1')
and q in (
'1000000.00',
'2000000.00',
'3000000.00',
'4000000.00',
'5000000.00',
'6000000.00',
'7000000.00',
'8000000.00',
'9000000.00',
'10000000.00',
'11000000.00',
'12000000.00',
'13000000.00',
'14000000.00',
'15000000.00',
'16000000.00',
'17000000.00',
'18000000.00',
'19000000.00',
'20000000.00'
)
group by k, q
) t
where source.k = t.k
and source.q = t.q
and source.t = t.t
)
update smt_settle_order_005
set extend_info = insert(nvl(extend_info, '{data_revise: true}'), 2, 0, '"is_manual_handled":"true",'), gmt_modified = current_timestamp(6)
where settle_order_id = '20190428111213810100166005200276654'
delete from `media_income_detail` partition(p16) where settlement_type = 'media_period_settle' and debit_kinds = 'tax_deduct' and pay_settle_period = 'med_aprv_d20210315-2' and product_line_code = 'union'
select biz_value from ((select "uk_value", "gmt_create", "gmt_modified", "biz_value", "idx_value", "int_value", '' as "_simsop_nsid" from test_table_sopdelta where uk_value in ('uk_1', 'uk_2') and idx_value = 'idx_1' and int_value = 110 and "_simsop_nsid" = '1111' and "_simsop_deleted_tag" = 0) union all (select "uk_value", "gmt_create", "gmt_modified", "biz_value", "idx_value", "int_value", '' as "_simsop_nsid" from test_table_sopdelta where "_simsop_nsid" = '22032501060000000d85_0' and "uk_value" not in (select o."uk_value" from test_table_sopdelta o inner join test_table_sopdelta d on o.uk_value = d.uk_value where d."_simsop_nsid" = '1111' and o."_simsop_nsid" = '1111' and o.uk_value in ('uk_1', 'uk_2') and o.idx_value = 'idx_1' and o.int_value = 110) and uk_value in ('uk_1', 'uk_2') and idx_value = 'idx_1' and int_value = 110)) t
select max(subtime) from ftd_cost_base_data where name='pd_consult' and time='20210813'
select
sotc.finance_exchange_code
from
sgw_out_trans_code sotc
where
sotc.id in
(
select
sat.out_trans_code_id
from
sgw_assemble_template sat
where
sat.sub_template_1 like '%epcc.101.001.01%' ||
sat.sub_template_1 like '%epcc.103.001.01%' ||
sat.sub_template_1 like '%epcc.201.001.01%' ||
sat.sub_template_1 like '%epcc.211.001.01%' ||
sat.sub_template_1 like '%epcc.205.001.01%'
)
update bs_leads_detail set gmt_create = adddate(now(), -2) ,leads_gmt_create = adddate(now(), -2) where cust_name = '1111'
delete policy from policy where code = 'ly_test_dev_77'