sql server常用函数 SQL SERVER常用函数集合.doc
文本预览下载声明
sql server常用函数 SQL SERVER常用函数集合
导读:就爱阅读网友为您分享以下“SQL SERVER常用函数集合”的资讯,希望对您有所帮助,感谢您对92的支持!
可选的
start_location 参数从 notes 列的第五个字符开始寻找quot;wonderfulquot;。第三个示例显示了当 expression2 内找不到 expression1 时的结果集。
USE pubs
GO
SELECT CHARINDEX(?wonderful?, notes)
FROM titles
WHERE title_id = ?TC3218?
GO
-- Use the optional start_location parameter to start searching
-- for wonderful starting with the fifth character in the notes
-- column.
USE pubs
GO
SELECT CHARINDEX(?wonderful?, notes, 5)
FROM titles
WHERE title_id = ?TC3218?
GO
下面是第一个查询和第二个查询的结果集:
-----------
显示全部