Self-Improvement
DB별로 LEFT(), RIGHT(), LENGTH(), LEN() 본문
MySQL
select left((select table_name from information_schema.tables limit 1),2) |
select right((select table_name from information_schema.tables limit 1),2) |
select length((select table_name from information_schema.tables limit 1)) |
MSSQL
select LEFT((select top 1 table_name from information_schema.tables),2) |
select right((select top 1 table_name from information_schema.tables),2) |
select len((select top 1 table_name from information_schema.tables)) |
Oracle
Oracle에서는 LEFT(), RIGTH() 함수가 존재하지 않는다.
select LENGTH((select table_name from (select rownum as rowidx,table_name from tabs)t where t.rowidx=1)) from dual |
'SQLi' 카테고리의 다른 글
Mysql Blind SQLi(Sleep 실전 쿼리) (0) | 2020.10.28 |
---|---|
활용된 MSSQL SQLi Time base IF Statement Payload (0) | 2020.08.14 |
MySQL Time SQLi(sleep, BENCHMARK, heavy query) (0) | 2020.04.27 |
쿼터없이 스트링 표현하기 비교 (MySQL, MSSQL, Oracle) (0) | 2020.04.27 |
Blind SQLi IF문 (Mysql, MSSQL(제약이 존재), Oracle(제약이 존재)) (0) | 2020.04.27 |