随笔分类 - sql
sql随笔
摘要:转自:http://dev.mysql.com/tech-resources/articles/hierarchical-data.htmlIntroductionMost users at one time or another have dealt with hierarchical data in a SQL database and no doubt learned that the ma...
阅读全文
posted @ 2010-11-03 02:55
N/A2011
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-...
阅读全文
posted @ 2008-07-26 02:53
N/A2011
摘要:Select column_name from OpenRowset( 'SQLOLEDB', 'Server=ServerName;UID=User;PWD=password;Database=databasetouse', 'Exec stored_procedure_or_select' ) SELECT another_col...
阅读全文
posted @ 2008-07-16 22:43
N/A2011
摘要:User Table: UserID(pk) Survey Table: SurveyID(pk) Question Table: QuestionID(pk) SurveyID(fk) Answer Table: AnswerID(pk) QuestionID(fk) Mark Result Table: AnswerID(pk) UserID(pk) Role Table: RoleID Us...
阅读全文
posted @ 2008-05-09 13:31
N/A2011
摘要:set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER FUNCTION [dbo].[JoeySplitWords](@text nvarchar(4000)) RETURNS @words TABLE (word nvarchar(4000)) AS BEGIN DECLARE @wordBegin smallint, ...
阅读全文
posted @ 2008-04-16 03:15
N/A2011
摘要:set ANSI_NULLS ON set QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[aspnet_Membership_CreateUser] @ApplicationName nvarchar(256), @UserName ...
阅读全文
posted @ 2008-01-08 11:09
N/A2011

浙公网安备 33010602011771号