Welcome To Snipplr
Everyone's Recent SQL Snippets Tagged sql
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Example of SQL syntax to add a new column to an existing table, define a default value to the columns for the existing rows and also add a check constraint to limit the values that the column can hold.
0
888
posted 12 years ago by denakitan
Search SQL Server or Oracle database for keyword embedded within stored procedures, functions, triggers, etc.
0
669
posted 12 years ago by jstrawther
in order to avoid the .zip madness when creating a new module, you can make it available in the backend by firing a simple SQL in your DB. (mod_media is the name of the folder that holds it)
0
580
posted 12 years ago by iroybot
This query will retrieve a list of the parameters and value sets based on a provided concurrent program user name
0
955
posted 12 years ago by theonlyalterego
Query to find the most recent logins for a particular user ( find 1 years worth )
0
821
posted 12 years ago by theonlyalterego
This code allows you to create an ID field value for inserts into a table that does not auto increment itself
0
689
posted 12 years ago by ezerick
Sintáxis y clausulas más habituales para consulas SQL con cláusula DELETE que elimina uno o varios registros de la tabla que se especifica.
0
482
posted 12 years ago by alberomo
Sintáxis y clausulas más habituales para consulas SQL con cláusula UPDATE que actualiza/modifica uno o varios registros de la tabla que se especifica.
0
533
posted 12 years ago by alberomo
Sintáxis y clausulas más habituales para consulas SQL con cláusula INSERT INTO que añade un nuevo registro a la tabla que se especifica.
0
517
posted 12 years ago by alberomo
Sintáxis y clausulas más habituales para consulas SQL con cláusula SELECT que generen una nueva tabla con el resultado de la consulta.
Su sintáxis genérica es SELECT [campos] FROM [tablas] WHERE [criterio]
0
558
posted 12 years ago by alberomo
Kill connections to a database to perform maintenance that requires a connectionless DB
0
404
posted 12 years ago by sommertim
Select rows that are 3 months ahead or 3 months behind from the current date.
0
533
posted 12 years ago by jafar
To start my new post area I will share a simple stored procedure that will check if a record exists, if so update it, otherwise create it; Simple hum?! Just Update it to your needs :)
0
556
posted 12 years ago by Whiteagle
[Query related to PHP code to save tweets from the twitter search API to a MySQL database](http://snipplr.com/view/56994/save-tweets-using-php-from-the-twitter-search-api-to-a-mysql-database/ "PHP code to save tweets from the twitter search API to a...
0
1207
posted 12 years ago by eddequincey
Very useful sql to find which responsibility has access to a report or request.
0
1871
posted 12 years ago by theonlyalterego
Get the value of the autonumber field for the last record inserted into an Access database via the current connection.
0
748
posted 12 years ago by wizard04
SQL
How to clear the history list from the \"servername\" field of SSMS Connect-to-server dialog box?
http://beyondrelational.com/ask/nakul/questions/10/how-to-remove-server-name-item-from-sql-server-management-studio.aspx
0
1107
posted 12 years ago by derebus