SqlServer英文單詞全字匹配
為普蘭等地區(qū)用戶提供了全套網(wǎng)頁(yè)設(shè)計(jì)制作服務(wù),及普蘭網(wǎng)站建設(shè)行業(yè)解決方案。主營(yíng)業(yè)務(wù)為成都網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)、普蘭網(wǎng)站設(shè)計(jì),以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專(zhuān)業(yè)、用心的態(tài)度為用戶提供真誠(chéng)的服務(wù)。我們深信只要達(dá)到每一位用戶的要求,就會(huì)得到認(rèn)可,從而選擇與我們長(zhǎng)期合作。這樣,我們也可以走得更遠(yuǎn)!
環(huán)境:Vs2013+Sql
Server2012
問(wèn)題:現(xiàn)在數(shù)據(jù)庫(kù)記錄如下:
Sentence列保存的是英文的句子,我現(xiàn)在想找出所有包含“I”(單詞)的句子,如果我用
Sentence
like
'%I',作為條件的話,那么像上圖選中的那條有個(gè)單詞“it“(不區(qū)分大小寫(xiě)的情況下),它也會(huì)被Select出來(lái),而我只想找出含有“I”這個(gè)單詞的句子的記錄。
解決:SqlServer提供了模式匹配,類(lèi)似于正則,詳細(xì)內(nèi)容查閱相關(guān)文檔。
我先寫(xiě)了一個(gè)這樣的條件:
Sentence
like
'%[^a-zA-Z]I[^a-zA-Z]%'
發(fā)現(xiàn)上圖里的第一條,也就是“I
would...",“I”開(kāi)頭的單詞沒(méi)有被Select出來(lái),也就是說(shuō),這個(gè)條件所匹配的是前面要一個(gè)非字母的符號(hào)(沒(méi)有字符是不可以的),那么同樣道理,最后面也需要一個(gè)非字母的符號(hào)(沒(méi)有字符也是不可以的),所以可改成:
Sentence
like
'%[^a-zA-Z]I[^a-zA-Z]%'
or
Sentence
like
'I[^a-zA-Z]%'
or
Sentence
like
'%[^a-zA-Z]I'
不過(guò)感覺(jué)這樣比較麻煩,如果把Sentence前后各加一個(gè)非字母的數(shù)字,像原本“I
would
like
I",把它變成“
I
would
like
I
"(前后各加一個(gè)空格),這樣就能匹配最開(kāi)始寫(xiě)的那個(gè)條件了:
'
'+Sentence+'
'
like
'%[^a-zA-Z]I[^a-zA-Z]%'
感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!
一、SQL Server關(guān)系數(shù)據(jù)庫(kù)簡(jiǎn)介
1、SQL Server是由Microsoft開(kāi)發(fā)和推廣的關(guān)系數(shù)據(jù)庫(kù)系統(tǒng)(DBMS),它最初是由Microsoft、Sybase和Ashton-Tate三家公司共同開(kāi)發(fā)的,并于1988年推出了第一個(gè)OS/2版本。
2、關(guān)系數(shù)據(jù)庫(kù)(RDBMS)管理系統(tǒng)功能:
》維護(hù)數(shù)據(jù)庫(kù)數(shù)據(jù)之間的關(guān)系;
》保證數(shù)據(jù)存儲(chǔ)的正確性;
》當(dāng)出現(xiàn)系統(tǒng)故障的時(shí)候,將所有數(shù)據(jù)恢復(fù)到能夠保證一致行的某種狀態(tài)
3、RDBMS:SQL Server,Oracle,DB/2,Sybase,Informix
4、Non-RDBMS(File-based):Foxpro,Access
二、SQL Server 2000的版本
1、SQL Server 2000常見(jiàn)版本有:
》企業(yè)版(Enterprise Edition)
支持所有SQL Server 2000的功能。該版本多用于大中型產(chǎn)品數(shù)據(jù)庫(kù)服務(wù)器,并且可以支持大型網(wǎng)站,企業(yè)OLTP(聯(lián)機(jī)事務(wù)處理)和大型數(shù)據(jù)倉(cāng)庫(kù)系統(tǒng)OLAP(聯(lián)機(jī)分析處理)所要求的性能。
》標(biāo)準(zhǔn)版(Standard Edition)
實(shí)用范圍是小型的工作組或部門(mén)。它支持大多數(shù)的SQL Server2000功能。但是,不具有支持大型數(shù)據(jù)庫(kù),數(shù)據(jù)倉(cāng)庫(kù)和網(wǎng)站的功能。而且,不支持所有的關(guān)系數(shù)據(jù)庫(kù)引擎的功能。
》個(gè)人版(Personal Edition)
主要適用于移動(dòng)用戶,因?yàn)樗麄兘?jīng)常從網(wǎng)絡(luò)上斷開(kāi),而運(yùn)行的應(yīng)用程序卻仍然需要SQL Server 2000的支持。除了事務(wù)處理復(fù)制功能以外,能夠支持所有SQL Server 2000標(biāo)準(zhǔn)版支持的特性。
》開(kāi)發(fā)者版(Developer Edition)
適用于應(yīng)用程序開(kāi)發(fā)的版本,支持除圖形化語(yǔ)言設(shè)置以外的SQL Server2000的所有其它功能。該版本主要適用于程序員在開(kāi)發(fā)應(yīng)用程序時(shí),將SQL Server 2000作為其數(shù)據(jù)存儲(chǔ)區(qū)。雖然開(kāi)發(fā)版的功能齊備,但是只被授權(quán)為一個(gè)開(kāi)發(fā)和測(cè)試系統(tǒng),而不是一個(gè)產(chǎn)品服務(wù)器。
1.1 SQL Server特點(diǎn)
》與因特網(wǎng)的集成:
SQL Server 2000的數(shù)據(jù)庫(kù)引擎全面支持XML(Extensive Markup Language,擴(kuò)展標(biāo)記語(yǔ)言),能使用戶很容易地將數(shù)據(jù)庫(kù)中的數(shù)據(jù)發(fā)布到Web頁(yè)面上。
》可伸縮性與可用性:
可跨越從運(yùn)行Windows 95/98的膝上型電腦到運(yùn)行Windows 2000的大型多處理器等多種平臺(tái)使用。另外,對(duì)聯(lián)合服務(wù)器,索引視圖等的支持,使得SQL Server 2000企業(yè)版可以升級(jí)到最大Web站點(diǎn)所需的性能級(jí)別。
》企業(yè)級(jí)數(shù)據(jù)庫(kù)功能:
SQL Server 2000分布式查詢可以引用來(lái)自不同數(shù)據(jù)庫(kù)的數(shù)據(jù),而且這些對(duì)于用戶來(lái)說(shuō)是完全透明的;分布式數(shù)據(jù)庫(kù)將保證任何分布式數(shù)據(jù)更新時(shí)的完整性;復(fù)制可以使我們能夠維護(hù)多個(gè)數(shù)據(jù)復(fù)本,這些用戶能夠自主地進(jìn)行工作,然后再將所做的修改合并到發(fā)布數(shù)據(jù)庫(kù);SQL Server 2000關(guān)系數(shù)據(jù)庫(kù)引擎能夠充分保護(hù)數(shù)據(jù)完整性,還可以將管理并發(fā)修改數(shù)據(jù)庫(kù)開(kāi)銷(xiāo)到最小。
》易于安裝,部署和使用:
SQL Server 2000由一系列的管理和開(kāi)發(fā)工具組成,這些工具使得在多個(gè)站點(diǎn)上進(jìn)行SQL Server的安裝,部署,管理和使用變得更加容易。開(kāi)發(fā)人員可以更加快速地交付SQL Server應(yīng)用程序,而且只需要進(jìn)行最少的安裝和管理就可以實(shí)現(xiàn)這些應(yīng)用程序。
》數(shù)據(jù)倉(cāng)庫(kù):
數(shù)據(jù)倉(cāng)庫(kù)是SQL Server 2000中包含的用于分析取和分析匯總數(shù)據(jù)以進(jìn)行聯(lián)機(jī)分析處理的工具。這個(gè)功能只在Oracle和其他更昂貴的DBMS中才有。
1.1.1 SQL Server 2000新特性
全面擴(kuò)展了SQL Server 7.0的性能,可靠性和易用性。增加了一系列的功能,具體如下:
》在關(guān)系數(shù)據(jù)庫(kù)方面的增強(qiáng)
》圖形管理增強(qiáng)
》增強(qiáng)的聯(lián)合數(shù)據(jù)庫(kù)服務(wù)器
1.2 SQL Server 2000工具和實(shí)用程序
1、企業(yè)管理器 2、服務(wù)管理器 3、查詢分析器 4、事件探查器
5、導(dǎo)入和導(dǎo)出數(shù)據(jù) 6、服務(wù)器網(wǎng)絡(luò)使用工具 7、客戶端網(wǎng)絡(luò)使用工具 8、聯(lián)機(jī)幫助文檔
1.2.1 企業(yè)管理器
企業(yè)管理器是基于一種新的被稱(chēng)為微軟管理控制臺(tái)(Microsoft Management Console)的公共服務(wù)器管理環(huán)境,它是SQL Server 2000中最重要的一個(gè)管理工具。
企業(yè)管理器不僅能夠配置系統(tǒng)環(huán)境和管理SQL Server,而且由于它能夠以層疊列表的形式來(lái)顯示所有的SQL Server對(duì)象,因而所有SQL Server對(duì)象的建立與管理都可以通過(guò)它來(lái)完成。
用企業(yè)管理可以完成的操作
》管理SQL Server服務(wù)器;建立與管理數(shù)據(jù)庫(kù);建立與管理表、視圖、存儲(chǔ)過(guò)程、觸發(fā)程序、角色、規(guī)則、默認(rèn)值等數(shù)據(jù)庫(kù)對(duì)象,以及用戶定義的數(shù)據(jù)類(lèi)型;備份數(shù)據(jù)庫(kù)和事務(wù)日志、
恢復(fù)數(shù)據(jù)庫(kù);復(fù)制數(shù)據(jù)庫(kù);設(shè)置任務(wù)調(diào)度;設(shè)置警報(bào);提供跨服務(wù)器的拖放控制操作;管理用戶賬戶;建立Transact-SQL命令語(yǔ)句以及管理和控制SQL Mail。
》在企業(yè)管理器中包含兩個(gè)窗口,左側(cè)的窗口是以“樹(shù)狀目錄”顯示的活動(dòng)窗口,右側(cè)是顯示內(nèi)容的窗口。
》單擊左側(cè)窗口中的加號(hào),可以展開(kāi)各個(gè)項(xiàng)目包含的子項(xiàng)目。
》通過(guò)選中的某個(gè)項(xiàng)目的節(jié)點(diǎn),可以在右側(cè)的窗口中看到該項(xiàng)目包含的內(nèi)容。
1.2.2服務(wù)管理器(Service Manager)
1、SQL Server服務(wù)管理器是在服務(wù)器端實(shí)際工作時(shí)最有用的實(shí)用程序,服務(wù)管理器用來(lái)啟動(dòng)、暫停、繼續(xù)和停止數(shù)據(jù)庫(kù)服務(wù)器的實(shí)時(shí)服務(wù),其提供的服務(wù)類(lèi)型包括:SQL Server、SQL Server代理、Microsoft搜索和分布式事務(wù)協(xié)調(diào)器等。
A relational database, SQL Server
1, by Microsoft SQL Server is the development and popularization of relational database system (DBMS), which was originally by Microsoft, and Ashton Sybase Tate - three companies and joint development, launched in 1988, the first OS / 2 version.
2 and relational database management system (RDBMS) function:
"Maintaining the relationship between database data,
"Ensure the correctness of the data storage,
"When a system fault, all data recovery to ensure consistent done some condition
3, RDBMS: SQL Server, Oracle, DB / 2, Sybase Informix,
4 and amplified RDBMS (File - based) : Foxpro, Access
Second, SQL Server 2000 version
1 and SQL Server 2000 common version:
"Enterprise Edition (Enterprise Edition),
Support all SQL Server 2000 function. This version for large and medium-sized products, and can support the database server, large web companies OLTP (online transaction processing) and large data warehouse system (on-line analytical processing (OLAP) required performance.
"Standard version (Standard Edition),
A small range of practical working or departments. It supports most SQL Server2000 function. But, do not have support large database, data warehouse and the functionality of the site. And don't support all the relations of the database engine.
"Personal Edition (Personal Edition),
Mainly used in mobile users, because they often disconnected, and from the network of applications running still need SQL Server 2000 support. Besides the transaction copy, able to support all functions of SQL Server 2000 standard version of the support.
"Edition) Developer Edition (Developer
Suitable application development version, support except graphical Server2000 SQL language setting beyond all the other functions. This version is mainly used in the programmer development application, will SQL Server 2000 as data storage area. Although development version of the function, but only authorized for a development and testing system, not a product server.
1.1 SQL Server features
With the integration of the Internet:
SQL Server 2000 database engine comprehensive support XML Language, creating take (extensible Markup Language), that the user can easily be database data released to the Web page.
"Scalability and usability:
Can span from running Windows 95, 98 / the laptop to run Windows 2000 large-scale multiple processors etc. Various platforms. In addition, to jointly Server, etc, the support index view that SQL Server 2000 enterprise edition can upgrade to the largest Web site desired performance level.
"Enterprise databases functions:
SQL Server 2000 distributed query can quote from different database data, and these are completely transparent to users, Distributed database will ensure that any distributed data update integrity, Copy can enable us to maintain multiple data available, the user can work independently, and then will be done by modified merged into the database, SQL Server 2000 relational database engine can fully protect data integrity, still can be modified database management concurrent cost to a minimum.
"Easy to install, deployment and use:
SQL Server 2000 by a series of management and development tools, these tools at multiple sites on SQL Server installation, deploy, manage and use more easily. Developers can more quickly deliver SQL Server applications and requires only the least installation and management can achieve these applications.
"Data warehouse:
The data warehouse is SQL Server 2000 contains for analysis and summary data analysis on on-line analytical processing tools. This function only in Oracle and other more expensive DBMS.
1.1.1 SQL Server 2000 new features
Fully expanded the SQL Server 7.0 performance, reliability and usability. Increases the range of functions, specific as follows:
In the aspect of relational database
"Graphics management enhancement
The combination of enhanced database server
1.2 SQL Server 2000 tools, and utilities
1, enterprise management, service management 3, 4, event detection query parsers
5 and 6, the input and output data network, server client to use tools, tools Internet use online documentation
1.2.1 enterprise management
Enterprise Management is based on a new called Microsoft Management Console (r) of public Management Microsoft Server Management environment, it is the SQL Server 2000 in one of the most important Management tools.
Enterprise management can not only configuration system environment and management, but also because it SQL Server can cascade form to list all the SQL Server object, so all the SQL Server object of establishment and management can be accomplished by it.
In enterprise management can finish operation
"Management SQL Server Server. Establish and manage database, Establish and manage, view, storage process, triggering role, rules, procedures, by default, such as user defined object database of data types, Backup database and transaction log,
Restore database, Copy database, Set task scheduling, Set alarm, Provide cross-server drag-and-drop controls operating, Manage the user accounts, Establish Transact - SQL commands and the management and control of the SQL statement E-mail.
"In the enterprise management in the window contains two on" the window "directory tree right is the active window, showing the contents of the window.
"The window, click on various projects can deploy plus committeeapos contains.
"Through a project of the selected node in the window, can see on this project contains the content.
1.2.2 Service Manager (up) Service
1 and SQL Server service manager is in practical work when the Server is most practical program, service management is to start, stop, and continue to suspend the real-time database Server service, the service provided types include: SQL Server, SQL Server proxy, Microsoft search and distributed coordination, etc.
給分的啊 累死了??!
SQL Server 的讀法
SQL 是縮寫(xiě), 直接讀字母 S-Q-L
server 的讀音音標(biāo)是:
英 [?s?:v?(r)] 美 [?s?:rv?(r)]
SQL是英文Structured Query Language的縮寫(xiě),意思為結(jié)構(gòu)化查詢語(yǔ)言。我們大多讀他的縮寫(xiě)就是sql。直接讀SQL(瑟我)
本文題目:sqlserver英文,sqlserver英文轉(zhuǎn)中文
文章源于:http://jinyejixie.com/article20/dssepjo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供、定制開(kāi)發(fā)、品牌網(wǎng)站制作、云服務(wù)器、網(wǎng)頁(yè)設(shè)計(jì)公司、做網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)