Welcome To Snipplr
Everyone's Recent SQL Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
GET_HASH_VALUE Function
This function computes a hash value for the given string.
Syntax
DBMS_UTILITY.GET_HASH_VALUE (
name VARCHAR2,
base NUMBER,
hash_size NUMBER)
RETURN NUMBER;
1
648
posted 13 years ago by mprabhuram
other links :
http://tinman.cs.gsu.edu/~raj/880/su98/pldsql/node6.html
1
504
posted 13 years ago by mprabhuram
In the examples so far we have declared variables as a separate object using one of PL/SQL’s standard datatypes. Normally a PL/SQL variable is closely tied to a database object and uses the same datatype. For example, if the variable will hold the...
1
516
posted 13 years ago by mprabhuram
This is the quick method and painless way to Remove duplicate entries from MySQL
2
585
posted 13 years ago by lixonic
Logic to subtract months from a date field and extract year and month
0
607
posted 13 years ago by mprabhuram
You can run this sql scripts in your database.
Firstly it creates a database and after insert records (timezones)
4
647
posted 13 years ago by emregulcan
Stored Procedure for search and replace a string in all fields of all tables of one DataBase
2
632
posted 13 years ago by Eloi
Stored Procedure for search a string in all fields of all tables of one DataBase
1
491
posted 13 years ago by Eloi
This snippet just updates your tables which infected "<script> </script>" code blocks.
You must update all columns one by one.
2
610
posted 13 years ago by emregulcan
This will take the alpha numeric loan number field and converts it into numeric loan number. If there are any loan numbers with alphabet then it is converted as NULL (basically alpha numeric loan numbers are ignored)
0
446
posted 13 years ago by mprabhuram
You can use this SP like that;
Exec CleanInjection 'INFECTED WORD','CLEAN WORD'
(in use : Exec CleanInjection '<script></script>','')
2
568
posted 13 years ago by emregulcan