Welcome To Snipplr


Everyone's Recent SQL Snippets Tagged sql



1 ... 8 9 10 11 12
1 1356 posted 16 years ago by tvanzele
0 1476 posted 16 years ago by tvanzele
0 1625 posted 16 years ago by tvanzele
1 1465 posted 16 years ago by tvanzele
1 1400 posted 16 years ago by tvanzele
1 1438 posted 16 years ago by tvanzele
0 1286 posted 16 years ago by tvanzele
I found this and simply want to store it. It was done by Valentino Vranken
2 4351 posted 16 years ago by ezerick
creates a user that has only access to one database, from any host
1 2179 posted 16 years ago by manuelstofer
Create a new utf8 database in MySQL
1 1613 posted 16 years ago by manuelstofer
Here's a handy query for finding duplicates in a table.
3 2080 posted 16 years ago by jmiller
1 1449 posted 16 years ago by CDIDevs
1 1942 posted 16 years ago by CDIDevs
Re-seed identity table if rows were deleted/there are gaps in numerical order
2 1658 posted 16 years ago by CDIDevs
1 2050 posted 16 years ago by CDIDevs
2 1722 posted 16 years ago by CDIDevs
1 1606 posted 16 years ago by CDIDevs
Using SQL you can have your database return the distance between 2 sets of Lat and Long points, and using some math functions also take into account the curvature of the earth.
3 2689 posted 16 years ago by zingo
Reset joomla super admin password to ”admin“
1 1567 posted 16 years ago by elisium
A Temp table is great for combining multiple SELECT statements in a Sproc and outputting as just one table. Don't forget to Drop the table after the SELECT * FROM #TempTableName at the end.
2 2353 posted 16 years ago by highlyevolved
These statements convert a date/time field into just a date or a time field
2 2205 posted 16 years ago by highlyevolved
0 1534 posted 16 years ago by tobewan
Delete All Foreign Keys in a database; (make sure you USE keyword)
2 1546 posted 16 years ago by marcocs
1 1640 posted 16 years ago by wearetherock
I am forever forgetting this. Have to look up the 101 vs 103 in books online every time. Also forget which way around is US/NZ format. :-)
1 2339 posted 16 years ago by rengber
Dead simple, but often forgotten.
1 2044 posted 16 years ago by rengber
From StackOverflow. I'm still not quite happy with my understanding of it, but it looks an order of magnitude more elegant than most I've found.
0 1917 posted 17 years ago by rengber
1 1731 posted 17 years ago by pdswan
1 ... 8 9 10 11 12