ebook img

SQL Anywhere® Studio 介绍 PDF

444 Pages·2005·5.32 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview SQL Anywhere® Studio 介绍

SQL Anywhere® Studio 介介介介绍绍绍绍 部件号: DC32073-01-0902-01 上次修改时间: 2005 年 1 月 版权所有 版权所有 © 1989-2005 Sybase,Inc. 部分版权所有© 2001-2004 iAnywhere Solutions,Inc. 保留所有权利。 未经 iAnywhere Solutions,Inc. 的事先书面许可,本书的任何部分不能以任何形式、任何手段(电子的、机械的、手工的、光学的或其它 手段)进行复制、传播或翻译。iAnywhere Solutions,Inc. 是 Sybase,Inc. 的子公司。 Sybase、SYBASE(徽标)、AccelaTrade、ADAWorkbench、Adaptable Windowing Environment、Adaptive Component Architecture、 Adaptive Server、Adaptive Server Anywhere、Adaptive Server Enterprise、Adaptive Server Enterprise Monitor、Adaptive Server Enterprise Replication、Adaptive Server Everywhere、Adaptive ServerIQ、Adaptive Warehouse、AnswerBase、Anywhere Studio、Application Manager、AppModeler、APTWorkbench、APT-Build、APT-Edit、APT-Execute、APT-Library、APT-Translator、ASEP、AvantGo、 AvantGo Application Alerts、AvantGo Mobile Delivery、AvantGo Mobile Document Viewer、AvantGo Mobile Inspection、AvantGo Mobile Marketing Channel、AvantGo Mobile Pharma、AvantGo Mobile Sales、AvantGo Pylon、AvantGo Pylon Application Server、AvantGo Pylon Conduit、AvantGo Pylon PIM Server、AvantGo PylonPro、Backup Server、BayCam、Bit-Wise、BizTracker、Certified PowerBuilder Developer、Certified SYBASE Professional、Certified SYBASE Professional 徽标、ClearConnect、Client Services、Client-Library、 CodeBank、Column Design、ComponentPack、Connection Manager、Convoy/DM、Copernicus、CSP、Data Pipeline、Data Workbench、 DataArchitect、Database Analyzer、DataExpress、DataServer、DataWindow、DB-Library、dbQueue、Developers Workbench、Direct Connect Anywhere、DirectConnect、Distribution Director、Dynamic Mobility Model、Dynamo、e-ADK、E-Anywhere、e-Biz Integrator、 ECGateway、ECMAP、ECRTP、eFulfillment Accelerator、Electronic Case Management、EmbeddedSQL、EMS、Enterprise Application Studio、Enterprise Client/Server、Enterprise Connect、Enterprise Data Studio、Enterprise Manager、Enterprise Portal(徽标)、Enterprise SQL Server Manager、Enterprise Work Architecture、Enterprise Work Designer、Enterprise Work Modeler、eProcurement Accelerator、 eremote、Everything Works Better When Everything Works Together、EWA、E-Whatever、Financial Fusion、Financial Fusion(及设计)、 Financial Fusion Server、FormulaOne、Fusion Powered e-Finance、Fusion Powered Financial Destinations、Fusion PoweredSTP、Gateway Manager、GeoPoint、GlobalFIX、iAnywhere、iAnywhere Solutions、ImpactNow、Industry Warehouse Studio、InfoMaker、Information Anywhere、Information Everywhere、InformationConnect、InstaHelp、Intelligent Self-Care、InternetBuilder、iremote、iScript、 JaguarCTS、jConnect for JDBC、KnowledgeBase、Logical Memory Manager、Mail Anywhere Studio、MainframeConnect、Maintenance Express、Manage Anywhere Studio、MAP、M-Business Channel、M-Business Network、M-Business Server、MDIAccess Server、 MDIDatabase Gateway、media.splash、Message Anywhere Server、MetaWorks、MethodSet、MLQuery、MobiCATS、MyAvantGo、 MyAvantGo Media Channel、MyAvantGo Mobile Marketing、MySupport、Net-Gateway、Net-Library、NewEra of Networks、Next Generation Learning、Next Generation Learning Studio、ODEVICE、OASiS、OASiS 徽标、ObjectConnect、ObjectCycle、 OmniConnect、OmniSQL Access Module、OmniSQL Toolkit、OpenBiz、Open Business Interchange、Open Client、Open Client/Server、 Open Client/Server Interfaces、Open ClientConnect、Open Gateway、Open Server、Open ServerConnect、Open Solutions、Optima++、 Orchestration Studio、Partnerships that Work、PB-Gen、PCAPT Execute、PCDB-Net、PCNet Library、PhysicalArchitect、Pocket PowerBuilder、PocketBuilder、Power Through Knowledge、power.stop、Power++、PowerAMC、PowerBuilder、PowerBuilder Foundation Class Library、PowerDesigner、PowerDimensions、PowerDynamo、Powering the New Economy、PowerJ、PowerScript、PowerSite、 PowerSocket、Powersoft、Powersoft Portfolio、Powersoft Professional、PowerStage、PowerStudio、PowerTips、PowerWare Desktop、 PowerWare Enterprise、ProcessAnalyst、QAnywhere、Rapport、Relational Beans、RepConnector、Replication Agent、Replication Driver、Replication Server、Replication Server Manager、Replication Toolkit、Report Workbench、Report-Execute、Resource Manager、 RW-DisplayLib、RW-Library、S.W.I.F.T. Message Format Libraries、SAFE、SAFE/PRO、SDF、Secure SQL Server、Secure SQL Toolset、Security Guardian、SKILS、smart.partners、smart.parts、smart.script、SQLAdvantage、SQLAnywhere、SQLAnywhere Studio、SQLCode Checker、SQLDebug、SQLEdit、SQLEdit/TPU、SQLEverywhere、SQLModeler、SQLRemote、SQLServer、 SQLServer Manager、SQLServer SNMP SubAgent、SQLServer/CFT、SQLServer/DBM、SQLSMART、SQLStation、SQLToolset、 SQLJ、Stage III Engineering、Startup.Com、STEP、SupportNow、Sybase Central、Sybase Client/Server Interfaces、Sybase Development Framework、Sybase Financial Server、Sybase Gateways、Sybase Learning Connection、SybaseMPP、Sybase SQL Desktop、Sybase SQL Lifecycle、Sybase SQL Workgroup、Sybase Synergy Program、Sybase User Workbench、Sybase Virtual Server Architecture、SybaseWare、 Syber Financial、SyberAssist、SybMD、SyBooks、System10、System11、System XI(徽标)、SystemTools、Tabular Data Stream、 TheEnterprise Client/Server Company、TheExtensible Software Platform、TheFuture Is Wide Open、TheLearning Connection、TheModel For Client/Server Solutions、TheOnline Information Center、ThePower ofOne、TotalFix、TradeForce、Transact-SQL、Translation Toolkit、Turning Imagination Into Reality、UltraLite、UltraLite.NET、UNIBOM、Unilib、Uninull、Unisep、Unistring、URKRuntime Kit for UniCode、Versacore、Viewer、VisualWriter、VQL、Warehouse Control Center、Warehouse Studio、Warehouse WORKS、 WarehouseArchitect、Watcom、WatcomSQL、Watcom SQL Server、WebDeploymentKit、Web.PB、Web.SQL、WebSights、 WebViewer、WorkGroup SQL Server、XA-Library、XA-Server 和 XPServer 是 Sybase,Inc. 或其子公司的商标。 所有其它商标均归各自的所有者所有。 目目目目目目目目录录录录录录录录 关关关关于于于于本本本本手手手手册册册册.....................................................................................................ix SQL Anywhere Studio 文档......................................................................................x 访问联机信息.......................................................................................................xiii 文档约定..............................................................................................................xvi Adaptive Server Anywhere 示例数据库..................................................................xix CustDB 示例数据库...............................................................................................xx 查找详细信息并提供反馈.....................................................................................xxi 1 SQLAnywhere Studio 介介介介绍绍绍绍..............................................................................3 欢迎使用 SQLAnywhere Studio...............................................................................4 安装 SQLAnywhere Studio......................................................................................6 2 介介介介绍绍绍绍 Adaptive Server Anywhere 和和和和 UltraLite..........................................................9 Adaptive Server Anywhere 简介..............................................................................10 用途......................................................................................................................11 特点......................................................................................................................12 数据库服务器........................................................................................................14 应用程序...............................................................................................................15 UltraLite 简介........................................................................................................16 比较 Adaptive Server Anywhere 和 UltraLite...........................................................18 3 复复复复制制制制技技技技术术术术简简简简介介介介................................................................................................21 简介......................................................................................................................22 统一数据库和远程数据库......................................................................................23 传播方法...............................................................................................................26 Sybase 复制技术....................................................................................................29 4 SQLAnywhere Studio for WindowsCE.................................................................37 入门......................................................................................................................38 iii 使用示例应用程序................................................................................................46 配置 WindowsCE 数据库......................................................................................55 在 WindowsCE 上使用数据库服务器....................................................................66 使用管理实用程序................................................................................................74 在 WindowsCE 上备份和恢复数据........................................................................87 WindowsCE 上不支持的 SQLAnywhere Studio 功能.............................................94 5 SQLAnywhere Studio 支支支支持持持持的的的的平平平平台台台台...............................................................107 简介....................................................................................................................108 Windows 和 NetWare 操作系统............................................................................110 UNIX、Linux 和 Macintosh 操作系统.................................................................116 MobiLink 同步统一数据库..................................................................................121 iAnywhere Solutions ODBC 驱动程序支持的平台................................................122 UltraLite 目标平台...............................................................................................123 操作系统版本.....................................................................................................125 6 数数数数据据据据库库库库应应应应用用用用程程程程序序序序的的的的体体体体系系系系结结结结构构构构.........................................................................131 关系数据库概念..................................................................................................132 数据库系统的组件..............................................................................................137 各组件是如何协同工作的...................................................................................140 多层计算体系结构..............................................................................................143 使用多个数据库..................................................................................................144 应用程序编程接口..............................................................................................146 Adaptive Server Anywhere 内在特性....................................................................152 7 从从从从数数数数据据据据库库库库表表表表中中中中选选选选择择择择数数数数据据据据.................................................................................155 SQL 和数据库计算..............................................................................................156 SELECT 语句......................................................................................................159 选择完整的表.....................................................................................................160 从表中选择列.....................................................................................................162 查询结果排序.....................................................................................................165 从表中选择行.....................................................................................................169 8 从从从从多多多多个个个个表表表表中中中中选选选选择择择择数数数数据据据据....................................................................................177 简介....................................................................................................................178 使用矢量积连接表..............................................................................................179 使用 ON 短语限制连接.......................................................................................180 iv 使用键连接 (key join) 来连接表...........................................................................182 使用自然连接 (natural join) 来连接表...................................................................184 使用外连接来连接表...........................................................................................186 9 使使使使用用用用子子子子查查查查询询询询选选选选择择择择数数数数据据据据....................................................................................187 子查询介绍.........................................................................................................188 单行和多行子查询..............................................................................................191 使用子查询代替连接...........................................................................................193 10 选选选选择择择择集集集集合合合合数数数数据据据据...............................................................................................195 汇总数据.............................................................................................................196 集合函数简介......................................................................................................197 将集合函数应用于分组数据................................................................................198 限制组................................................................................................................200 11 更更更更新新新新数数数数据据据据库库库库...................................................................................................203 简介....................................................................................................................204 将行添加到表中..................................................................................................205 修改表中各行......................................................................................................206 删除行................................................................................................................207 将更改组合到事务中...........................................................................................208 完整性检查.........................................................................................................211 12 示示示示例例例例数数数数据据据据库库库库..................................................................................................217 关于示例数据库..................................................................................................218 第 1 课:制作示例数据库的副本.........................................................................220 第 2 课:启动 Adaptive Server Anywhere 数据库服务器.......................................221 第 3 课:显示数据库服务器窗口.........................................................................223 第 4 课:关闭数据库服务器................................................................................225 小结....................................................................................................................226 13 建建建建立立立立连连连连接接接接......................................................................................................227 关于连接.............................................................................................................228 关于 ODBC 数据源.............................................................................................229 第 1 课:创建 ODBC 数据源...............................................................................230 第 2 课:使用示例 ODBC 数据源连接.................................................................233 第 3 课:其它连接方法.......................................................................................234 v 第 4 课:断开与示例数据库的连接.....................................................................235 小结....................................................................................................................236 14 使使使使用用用用 InteractiveSQL...............................................................................................237 关于 InteractiveSQL............................................................................................238 第 1 课:启动 Interactive SQL.............................................................................239 第 2 课:InteractiveSQL 界面.............................................................................240 第 3 课:使用 InteractiveSQL 显示数据..............................................................246 第 4 课:使用 SQL 语句......................................................................................252 小结....................................................................................................................260 15 使使使使用用用用 Sybase Central 管管管管理理理理数数数数据据据据库库库库.................................................................261 关于 Sybase Central.............................................................................................262 第 1 课:启动 Sybase Central 并连接...................................................................263 第 2 课:Sybase Central 界面...............................................................................264 第 3 课:查看示例数据库...................................................................................266 第 4 课:创建和编辑表.......................................................................................272 第 5 课:管理用户和组.......................................................................................275 第 6 课:查看和编辑存储过程............................................................................277 第 7 课:备份数据库...........................................................................................281 恢复示例数据库..................................................................................................282 小结....................................................................................................................283 16 设设设设计计计计和和和和建建建建立立立立数数数数据据据据库库库库........................................................................................285 关于设计新的数据库...........................................................................................286 设计和建立一个简单的数据库............................................................................287 第 1 课:创建数据库文件...................................................................................288 第 2 课:连接到数据库.......................................................................................290 第 3 课:设计和创建表.......................................................................................292 第 4 课:标识和创建主键...................................................................................294 第 5 课:设计列属性...........................................................................................296 第 6 课:设计和创建表间关系............................................................................299 小结....................................................................................................................302 17 使使使使用用用用 MobiLink 同同同同步步步步数数数数据据据据库库库库..........................................................................303 关于 MobiLink....................................................................................................304 简介....................................................................................................................305 vi 第 1 课:创建数据库...........................................................................................306 第 2 课:为同步准备数据库................................................................................310 第 3 课:启动 MobiLink 同步服务器...................................................................314 第 4 课:运行 MobiLink 同步客户端实用程序.....................................................315 小结....................................................................................................................317 18 使使使使用用用用 SQLRemote 复复复复制制制制数数数数据据据据..........................................................................319 关于 SQLRemote................................................................................................320 第 1 课:入门......................................................................................................321 第 2 课:设置统一数据库....................................................................................323 第 3 课:设置远程数据库....................................................................................327 第 4 课:复制数据..............................................................................................330 第 5 课:恢复数据库和数据库设置.....................................................................334 小结....................................................................................................................337 19 使使使使用用用用 PowerDesigner 设设设设计计计计数数数数据据据据库库库库..................................................................339 关于 PowerDesigner.............................................................................................340 第 1 课:入门......................................................................................................342 第 2 课:添加列..................................................................................................348 第 3 课:检查所做的工作....................................................................................351 第 4 课:保存更改并生成数据库.........................................................................352 小结....................................................................................................................356 20 使使使使用用用用 InfoMaker 创创创创建建建建报报报报告告告告.............................................................................359 关于 InfoMaker....................................................................................................360 第 1 课:入门......................................................................................................361 第 2 课:创建基本的报告....................................................................................363 第 3 课:改进报告..............................................................................................366 小结....................................................................................................................371 21 Microsoft Visual Basic 快快快快速速速速入入入入门门门门..................................................................373 教程:开发 VisualBasic 应用程序.......................................................................374 术术术术语语语语表表表表..........................................................................................................381 索索索索引引引引..............................................................................................................399 vii viii 关关关关于于于于本本本本手手手手册册册册 主主主主题题题题 本书介绍了 SQLAnywhere Studio 这一完整的关系数据管理和同步系 统,该系统可用于移动、嵌入和工作组计算。 SQLAnywhere Studio 是一组用于处理关系数据的软件组件。除数据同 步和复制技术外,它还包括 Adaptive Server Anywhere 和 UltraLite 关系 数据库管理系统。此外,还包括用于设计和部署数据库以及创建自定义 报告和数据输入表格的应用程序。 读读读读者者者者 本书面向的读者是:所有使用 SQLAnywhere Studio 的应用程序开发人 员和数据库管理员。 预预预预备备备备知知知知识识识识 本书假定读者已掌握关系数据库和 SQL 的基本知识。 ix SQL Anywhere Studio 文档 SQL Anywhere Studio 文文文文档档档档 本手册是 SQLAnywhere 文档集的一部分。本节介绍文档集中包含的手 册及其使用方法。 SQLAnywhere 我们以多种形式提供了 SQLAnywhere Studio 文档:联机文档,将所有 Studio 文文文文档档档档 手册都合并到一个大帮助文件中;PDF 文件,每本手册有一个单独的 PDF 文件;以及可以购买到的印刷手册。这些文档包括以下手册: • SQLAnywhere Studio 介介介介绍绍绍绍 这本手册概述了 SQLAnywhere Studio 数据库管理和同步技术。手册中提供了一些教程,分别介 绍 SQLAnywhere Studio 的各个组成部分。 • SQLAnywhere Studio 的的的的新新新新功功功功能能能能 这本手册面向的读者是该软件 旧版本的用户。该手册列出了本产品此版本和以前版本的新功能, 并介绍了升级步骤。 • Adaptive Server Anywhere 数数数数据据据据库库库库管管管管理理理理指指指指南南南南 这本手册介绍有关 运行、管理和配置数据库和数据库服务器等方面的内容。 • Adaptive Server Anywhere SQL 用用用用户户户户指指指指南南南南 这本手册介绍如何设 计和创建数据库;如何导入、导出和修改数据;如何检索数据以 及如何建立存储过程和触发器。 • Adaptive Server Anywhere SQL 参参参参考考考考手手手手册册册册 这本书为 Adaptive Server Anywhere 使用的 SQL 语言提供了一套完整的参考资料。还 介绍了 Adaptive Server Anywhere 系统表和过程。 • Adaptive Server Anywhere 编编编编程程程程指指指指南南南南 这本手册介绍如何使用 C、 C++ 和 Java 编程语言建立和部署数据库应用程序。使用 Visual Basic 和 PowerBuilder 等工具的用户可以使用这些工具提供的编程 接口。它还介绍了 Adaptive Server Anywhere ADO.NET 数据提供 程序。 • Adaptive Server Anywhere SNMP Extension Agent 用用用用户户户户指指指指南南南南 本 手册介绍如何配置 Adaptive Server Anywhere SNMP Extension Agent,以使用 SNMP 管理应用程序来管理 Adaptive Server Anywhere 数据库。 x

Description:
SQL Server Manager、 Enterprise Work Architecture、 Enterprise Work Designer、 Generation Learning、 Next Generation Learning Studio、 O DEVICE、 Server Anywhere、 Sybase Adaptive Server Enterprise、 Oracle、 .. 连接到数据库时,缺省用户ID 为DBA。 Oracle 8i 和9i User's Gu
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.