Ads by Google

Donate

If you like articles and you want an increase of them, please make a little donation. If you make a donation you can submit us by mail an argument for next articles!

Importo: 

add RSS

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati

Subscribe to Blog

Follow us on Twitter

follow us

Manfriday blog gadget

SqlServer


Sql Server single quote escape

Just a note about single quote escape in SQL server... :-)

 the following query

SELECT *
FROM Person.Name
WHERE Name = 'D'agostino'

 will give you an error... so to escape the single quote you have to use '' 

 

 SELECT *

FROM Person.Name
WHERE Name = 'D''agostino'

 

 
Sql Iterator
Mercoledì 17 Dicembre 2008 00:32

 This is a pretty snippet to create a iterator function with Sql. The main element is the CURSOR witch allows to cycle on a table like a for operator.

 if you want recall this procedure from the command line you only need to connect to the database and then enter

db2 "CALL iterator ()" 

CREATE PROCEDURE iterator()

 


Ricerca personalizzata