📄 4.test
字号:
# OK : simple select testingselect * from staff\p\gselect last_name, staff_id, height from staff\p\gselect * from staff where height > 2\p\gselect staff_id, address from contact\p\gselect * from pay where pay_time > '09:00:00' \p\gselect * from pay where pay_date < '01-Mar-1997' \p\gselect * from pay where pay_amount > 100 and pay_amount < 900 \p\g# OK : basic index lookupsselect * from staff where staff_id = 2\p\gselect * from staff where staff_id = 5 and height = 1.999\p\gselect * from staff where first_name = 'Bill' and last_name = 'Jones'\p\gselect * from staff where first_name = 'Fred' and dept = 'Admin' and last_name = 'Smith'\p\gselect * from pay where pay_date = '1-mar-1997'\p\gselect * from pay where pay_time = '8:30:00'\p\gselect * from pay where pay_date = '15-Feb-1997' and pay_time = '8:30:00'\p\g# OK : simple Ident comparisonsselect * from staff where first_name > last_name \p\gselect * from pay where staff_id < pay_amount\p\g# OK : index based single table Ident comparisonsselect * from pay where staff_id = pay_amount \p\g# OK : some regex matchingselect * from staff where last_name CLIKE 'hu%'\p\gselect * from staff where last_name CLIKE 'hu%%'\p\gselect * from staff where last_name LIKE 'hu%'\p\gselect * from staff where last_name LIKE 'Hu%'\p\gselect * from staff where last_name LIKE '%Hu%'\p\gselect * from staff where last_name RLIKE '[SJ].*'\p\g# ERR : regex on not char fieldsselect * from pay where pay_date LIKE '%Feb%'\p\gselect * from pay where pay_amount LIKE '%F%'\p\gselect * from users where staff_id CLIKE '%F%'\p\g
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -