SQL 2000的概述

\u51e0\u5f20\u8868\u5b8c\u6574\u6982\u62ec SQL 2000 \u9700\u8981 SQL\u8bed\u53e5

1.\u521b\u5efa\u6570\u636e\u5e93
\u3000\u3000\u521b\u5efa\u4e4b\u524d\u5224\u65ad\u8be5\u6570\u636e\u5e93\u662f\u5426\u5b58\u5728
\u3000\u3000if exists (select * from sysdatabases where name='databaseName')
\u3000\u3000drop database databaseName
\u3000\u3000go
\u3000\u3000Create DATABASE database-name
2.\u5220\u9664\u6570\u636e\u5e93
\u3000\u3000drop database dbname
3.\u5907\u4efdsql server
\u3000\u3000--- \u521b\u5efa \u5907\u4efd\u8d44\u6599\u7684 device
\u3000\u3000USE master
\u3000\u3000EXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.dat'
\u3000\u3000--- \u5f00\u59cb \u5907\u4efd
\u3000\u3000BACKUP DATABASE pubs TO testBack
\u521b\u5efa\u65b0\u8868
\u3000\u3000create table tabname(col1 type1 [not null] [primary key],col2 type2 [not null],..)
\u5220\u9664\u65b0\u8868
\u3000\u3000drop table tabname
\u589e\u52a0\u4e00\u4e2a\u5217
\u3000\u3000Alter table tabname add column col type \u3002
\u6dfb\u52a0\u4e3b\u952e
\u3000\u3000Alter table tabname add primary key(col)
\u3000\u3000\u8bf4\u660e\uff1a\u5220\u9664\u4e3b\u952e\uff1a Alter table tabname drop primary key(col)
\u521b\u5efa\u7d22\u5f15
\u3000\u3000create [unique] index idxname on tabname(col\u2026.)
\u3000\u3000\u5220\u9664\u7d22\u5f15\uff1adrop index idxname on tabname
\u3000\u3000\u6ce8\uff1a\u7d22\u5f15\u662f\u4e0d\u53ef\u66f4\u6539\u7684\uff0c\u60f3\u66f4\u6539\u5fc5\u987b\u5220\u9664\u91cd\u65b0\u5efa\u3002
\u521b\u5efa\u89c6\u56fe
\u3000\u3000create view viewname as select statement
\u3000\u3000\u5220\u9664\u89c6\u56fe\uff1adrop view viewname
\u51e0\u4e2a\u7b80\u5355\u7684\u57fa\u672c\u7684sql\u8bed\u53e5
\u3000\u3000\u9009\u62e9\uff1aselect * from table1 where \u8303\u56f4
\u3000\u3000\u63d2\u5165\uff1ainsert into table1(field1,field2) values(value1,value2)
\u3000\u3000\u5220\u9664\uff1adelete from table1 where \u8303\u56f4
\u3000\u3000\u66f4\u65b0\uff1aupdate table1 set field1=value1 where \u8303\u56f4
\u3000\u3000\u67e5\u627e\uff1aselect * from table1 where field1 like \u2019%value1%\u2019 \uff08\u6240\u6709\u5305\u542b\u2018value1\u2019\u8fd9\u4e2a\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\uff09---like\u7684\u8bed\u6cd5\u5f88\u7cbe\u5999\uff0c\u67e5\u6570\u636e!
\u3000\u3000\u6392\u5e8f\uff1aselect * from table1 order by field1,field2 [desc]
\u3000\u3000\u603b\u6570\uff1aselect count(*) as totalcount from table1
\u3000\u3000\u6c42\u548c\uff1aselect sum(field1) as sumvalue from table1
\u3000\u3000\u5e73\u5747\uff1aselect avg(field1) as avgvalue from table1
\u3000\u3000\u6700\u5927\uff1aselect max(field1) as maxvalue from table1
\u3000\u3000\u6700\u5c0f\uff1aselect min(field1) as minvalue from table1[separator]

SQL Server \u662f\u4e00\u4e2a\u5173\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u5b83\u6700\u521d\u662f\u7531Microsoft Sybase \u548cAshton-Tate\u4e09\u5bb6\u516c\u53f8\u5171\u540c\u5f00\u53d1\u7684\uff0c\u4e8e1988 \u5e74\u63a8\u51fa\u4e86\u7b2c\u4e00\u4e2aOS/2 \u7248\u672c\u3002\u5728Windows NT \u63a8\u51fa\u540e\uff0cMicrosoft\u4e0eSybase \u5728SQL Server \u7684\u5f00\u53d1\u4e0a\u5c31\u5206\u9053\u626c\u9573\u4e86\u3002Microsoft \u5c06SQL Server \u79fb\u690d\u5230Windows NT\u7cfb\u7edf\u4e0a\uff0c\u4e13\u6ce8\u4e8e\u5f00\u53d1\u63a8\u5e7fSQL Server \u7684Windows NT \u7248\u672c\uff1bSybase \u5219\u8f83\u4e13\u6ce8\u4e8eSQL Server\u5728UNIX \u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7684\u5e94\u7528\u3002\u3002

SQL Server 2000是为迅速提供可伸缩性电子商务、企业及数据仓库解决方案而开发的完整数据库与分析软件产品。SQL SERVER 2000定位于Internet背景下的数据库应用,它为用户的Web应用提供了一款完善的数据管理和数据分析解决方案。同时SQL SERVER 2000还是Windows DNA(Distributed Internet Architecture)架构的一个核心组件。它极大地缩短了用户开发电子商务、数据仓库应用的时间。SQL SERVER 2000还提供对XML(Extensible Markup Language扩展标示语言支持)和HTTP的全方位支持。
在高性能和企业级可伸缩性领域,SQL Server 2000 设计成利用 Windows 2000 对更多处理器、更大的系统内存的支持,最终达到支持 64 位硬件平台。在不断提升可用性的努力过程中,SQL Server 2000 采用 Windows 2000 四路群集,提供了大大改进的群集支持。SQL Server 7.0 已经在可管理性和易用性方面在行业内领先,SQL Server 2000 通过与 Windows 2000 活动目录紧密结合进一步改进了这些功能。而且,SQL Server 2000 还包含对现有管理工具和实用程序的重大改进,并引入更具自我调节和自我管理的引擎功能。
SQL Server 2000 按照设计可以为部署和维护强大的、易于管理、支持商务活动的 Web 站点提供最好的性能,这些站点可以从事商家和商家之间或商家与客户之间的交易。在寻求一个支持您的电子商务解决方案的数据库时,需要考虑的项目包括:可用性、性能、可管理性和价格。



扩展阅读:win7安装sql2000没反应 ... sql2000与win10不兼容 ... sql2000装在win10 ... sql的参数怎么写 ... sql2008安装详细图解 ... sql2000个人版安装教程 ... sql2000 sp4 ... sql漏洞注入测试工具 ... sql语句 金额合计 ...

本站交流只代表网友个人观点,与本站立场无关
欢迎反馈与建议,请联系电邮
2024© 车视网