Welcome To Snipplr


Everyone's Recent SQL Snippets



1 ... 9 10 11 12 13 ... 18
1 1669 posted 15 years ago by cjcdeleon
Elapsed Time Calculation
0 1556 posted 15 years ago by mprabhuram
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 2030 posted 15 years ago by mprabhuram
Returns database's version
0 1515 posted 15 years ago by mprabhuram
other links : http://tinman.cs.gsu.edu/~raj/880/su98/pldsql/node6.html
1 1756 posted 15 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 1898 posted 15 years ago by mprabhuram
This is the quick method and painless way to Remove duplicate entries from MySQL
2 1958 posted 15 years ago by lixonic
Logic to subtract months from a date field and extract year and month
0 1934 posted 16 years ago by mprabhuram
Sequence is used to generate auto incrementing numbers
0 1543 posted 16 years ago by mprabhuram
2 1771 posted 16 years ago by ChrisCantley
1 1745 posted 16 years ago by RealRover
You can run this sql scripts in your database. Firstly it creates a database and after insert records (timezones)
4 2238 posted 16 years ago by emregulcan
Stored Procedure for search and replace a string in all fields of all tables of one DataBase
2 2334 posted 16 years ago by Eloi
Stored Procedure for search a string in all fields of all tables of one DataBase
1 2077 posted 16 years ago by Eloi
See the DBLinks that you have created in the past
0 1803 posted 16 years ago by mprabhuram
use this to convert the oracle time stamp into a character.
0 1829 posted 16 years ago by mprabhuram
1 1777 posted 16 years ago by vedgiee
This snippet just updates your tables which infected "<script> </script>" code blocks. You must update all columns one by one.
2 2195 posted 16 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 1685 posted 16 years ago by mprabhuram
You can use this SP like that; Exec CleanInjection 'INFECTED WORD','CLEAN WORD' (in use : Exec CleanInjection '<script></script>','')
2 2162 posted 16 years ago by emregulcan
Use this logic to avoid double counting in ORACLE SQL
1 1905 posted 16 years ago by mprabhuram
This function can be used to find out if there exists an overlap between two pairs of dates or time. There is an alternate way to calculate the actual overlapping value - Read the snippet "How to avoid double counts"
0 4736 posted 16 years ago by mprabhuram
1 ... 9 10 11 12 13 ... 18