DevSnips.com Code Snippet Repository
search:    


Navigation
  Home
About
Library
Contact
 
Snippet Library
  ColdFusion   338  
  ASP   201  
  PHP   101  
  HTML   11  
  JavaScript   77  
  XML   2  
  CSS   5  
  SQL   13  
  JSP   2  
  C#   1  
  ASP.NET   0  
  Submit a Code Snippet
 
Blog Archive
  September 2007
August 2007
July 2007
June 2007
May 2007
November 2006
October 2006
Search Archives
 
Random Affiliates
  PHP Arch
ReviewMe!
Tom Morris
BioMetric Base

Want to become an affiliate?
Read more...


Privacy Policy
© 2010

Snippet Library

SQL - Structured Query Language (.sql)


 
Title   Description

Connecting to SQLServer via IP   Where: - xxx.xxx.xxx.xxx is an IP address - 1433 is the default port number for SQL Server. - "Ne
COUNT   Will return record count of the return. You can COUNT specific fields doing this as well.
Dynamic SQL in StoredProc   Build a SQL statement in a stored proceedure, and execute it
INNER JOIN   Standard inner join statment
INSERT Statement   Basic Insert Statement - Using ColdFusion variables.
MAX   Will Return the last record or highest value of the specified field.
MySQL Dump Backup   This snip will dump the entire database. Was originally used to migrate from mysql4.0 to mysql4.1
ORDER BY   Will sort LastName from A-Z, use DESC for Z-A sort. Items can be ORDER BY Date, Text or numeric val
Remove Duplicate Rows from a Database   The following SQL example shows you how to eliminate all duplicate rows from a table. This example
SELECT DISTINCT   This will select all unique values. It will ignore all duplicate entries.
SELECT TOP 10   Although the SQL Server BOL claims that T-SQL doesn't support the TOP keyword, in fact it does—and t
SET ROWCOUNT   You're probably familiar with the typical "SELECT * FROM Table" SQL statement, which returns all the
UPDATE Statement   Basic Update Statement - Using ColdFusion variables.





Advertisements

http://promotions.newegg.com/Misc/free_shipping/in