SQLServer [sik?u 's?:v?]。
新源ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為創(chuàng)新互聯(lián)的ssl證書(shū)銷(xiāo)售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話(huà)聯(lián)系或者加微信:028-86922220(備注:SSL證書(shū)合作)期待與您的合作!
SQL Server 是Microsoft 公司推出的關(guān)系型數(shù)據(jù)庫(kù)管理系統(tǒng)。具有使用方便可伸縮性好與相關(guān)軟件集成程度高等優(yōu)點(diǎn),可跨越從運(yùn)行Microsoft Windows 98 的膝上型電腦到運(yùn)行Microsoft Windows 2012 的大型多處理器的服務(wù)器等多種平臺(tái)使用。
Microsoft SQL Server 是一個(gè)全面的數(shù)據(jù)庫(kù)平臺(tái),使用集成的商業(yè)智能 (BI)工具提供了企業(yè)級(jí)的數(shù)據(jù)管理。Microsoft SQL Server 數(shù)據(jù)庫(kù)引擎為關(guān)系型數(shù)據(jù)和結(jié)構(gòu)化數(shù)據(jù)提供了更安全可靠的存儲(chǔ)功能,使您可以構(gòu)建和管理用于業(yè)務(wù)的高可用和高性能的數(shù)據(jù)應(yīng)用程序。
SQL Server 的讀法
SQL 是縮寫(xiě), 直接讀字母 S-Q-L
server 的讀音音標(biāo)是:
英 [?s?:v?(r)] 美 [?s?:rv?(r)]
--?SQLServer:
---測(cè)試數(shù)據(jù)---
if?object_id('[pactinfo]')?is?not?null?drop?table?[pactinfo]
go
create?table?[pactinfo]([ID]?int,[pactname]?varchar(4))
insert?[pactinfo]
select?1,'正常'?union?all
select?2,'中國(guó)'?union?all
select?3,'做飯'?union?all
select?4,'加發(fā)'
---引用前輩們的一個(gè)函數(shù)---
create?function???f_GetPy(@str???nvarchar(4000))?
returns???nvarchar(4000)?
as?
begin?
declare???@strlen???int,@re???nvarchar(4000)?
declare???@t???table(chr???nchar(1)???collate???Chinese_PRC_CI_AS,letter???nchar(1))?
insert???into???@t(chr,letter)?
select???'吖?',?'A?'???union???all???select???'八?',?'B?'???union???all?
select???'嚓?',?'C?'???union???all???select???'咑?',?'D?'???union???all?
select???'妸?',?'E?'???union???all???select???'發(fā)?',?'F?'???union???all?
select???'旮?',?'G?'???union???all???select???'鉿?',?'H?'???union???all?
select???'丌?',?'J?'???union???all???select???'咔?',?'K?'???union???all?
select???'垃?',?'L?'???union???all???select???'嘸?',?'M?'???union???all?
select???'拏?',?'N?'???union???all???select???'噢?',?'O?'???union???all?
select???'妑?',?'P?'???union???all???select???'七?',?'Q?'???union???all?
select???'呥?',?'R?'???union???all???select???'仨?',?'S?'???union???all?
select???'他?',?'T?'???union???all???select???'屲?',?'W?'???union???all?
select???'夕?',?'X?'???union???all???select???'丫?',?'Y?'???union???all?
select???'帀?',?'Z?'?
select???@strlen=len(@str),@re=?'?'?
while???@strlen?0?
begin?
select???top???1???@re=letter+@re,@strlen=@strlen-1?
from???@t???a???where???chr?=substring(@str,@strlen,1)?
order???by???chr???desc?
if???@@rowcount=0?
select???@re=substring(@str,@strlen,1)+@re,@strlen=@strlen-1?
end?
return(@re)?
end?
---查詢(xún)---
select?
*?
from?
[pactinfo]
where
left(dbo.f_GetPy(pactname),1)='Z'
---結(jié)果---
ID??????????pactname?
-----------?--------?
1???????????正常
2???????????中國(guó)
3???????????做飯
(所影響的行數(shù)為?3?行)
SQLSERVER數(shù)據(jù)庫(kù)可以這樣
select?*
from?table_name
where?left(拼音查詢(xún),1)='A'?
order?by?拼音查詢(xún)
要是表格里沒(méi)有拼音的話(huà)不可能直接根據(jù)中文提取首字母的。EXCEL和SQL還沒(méi)智能化到如此