Computer/Databases
[MSSQL 2005] SET QUOTED_IDENTIFIER
인생이글케쉬우냐
2009. 9. 14. 11:13
[출처] SET QUOTED_IDENTIFIER |작성자 호랑이
SET QUOTED_IDENTIFIER OFF
SELECT "This is a "double-quoted" string"
--Incorrect syntax near the keyword 'double'.
GO
SELECT "This is a ""double-quoted"" string"
--works
GO
SET QUOTED_IDENTIFIER ON
SELECT 'This is a 'single-quoted' string'
--Line 2: Incorrect syntax near '-'.
GO
SELECT 'This is a ''single-quoted'' string'
--works
GO
반응형