`
housheng33
  • 浏览: 236456 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Sybase IQ从远程数据库插入到本地数据库

    博客分类:
  • sql
 
阅读更多
Sybase IQ Insert location使用
1 命令介绍
     INSERT [INTO] [owner.]table-name[ (column-name [, ... ] ) ]
... insert-load-options
[ LOCATION 'servername.dbname'
[ location-options ] ]
... { select-statement }
   【参数说明】
 insert-load-options
 [ LIMIT number-of-rows ]:The LIMIT option specifies the maximum number of rows to insert into the table from a query. The default is 0 for no limit. The maximum is 2GB -1.指定插入的最大的行数。
 [ NOTIFY number-of-rows ]:The NOTIFY option specifies that you be notified with a message each time the number of rows are successfully inserted into the table. The default is every 100,000 rows. 每次插入时都有消息提示,默认是100,000行提示一次。
 [ SKIP number-of-rows ]:The SKIP option lets you define a number of rows to skip at the beginning of the input tables for this insert. The default is 0.忽略几行开始插入
 [ START ROW ID number ]:The START ROW ID option specifies the record identification number of a row in the IQ table where it should start inserting. This option is used for partialwidth inserts, which are inserts into a subset of the columns in the table. By default, new rows are inserted wherever there is space in the table, and each insert starts a new row。
 location-options
 [ ENCRYPTED PASSWORD ]:
 [ PACKETSIZE packet-size ]:The PACKETSIZE parameter specifies the TDS packet size in bytes. The default TDS packet size on most platforms is 512 bytes. If your application is receiving large amounts of text or bulk data across a network, then a larger packet size might significantly improve performance.
 [ QUOTED_IDENTIFIER { ON | OFF } ]
   【例子】
INSERT INTO lineitem
(shipdate, orderkey)
LOCATION 'detroit.asiqdb'
PACKETSIZE 512
' SELECT shipdate, orderkey
FROM lineitem '
   【说明】:Inserts data from the shipdate and orderkey columns of the lineitem
table from the Sybase IQ 11.5 database asiq11db.dba on the server detroit,
into the corresponding columns of the lineitem table in the current
database。把远端数据库的表插入到本地
  【注意问题】
 Enter the remote server database name in the directory services (interfaces) file—interfaces文件中必须加上server的名字
 建立server是必须有DBA的权限
 You can insert a maximum of 2147483647 rows.
 You cannot use unsigned integer data.
分享到:
评论

相关推荐

    Sybase IQ 17 数据库连接驱动(64、32)安装包

    标签中包含的“SQLAnywhere”和“SybaseIQ”都是Sybase公司的产品。SQLAnywhere是一个轻量级的数据库管理系统,适合移动设备和分布式环境,而Sybase IQ则专注于数据仓库和分析应用。这些标签强调了该驱动程序适用于...

    sybase iq 16 数据库连接驱动

    支持sybase iq 16 数据库连接驱动 jconn2.jar 在jdk1.5下是好用的 jconn3.jar 未测试 jconn4.jar 在jdk1.6下是好用的 连接串: jdbc:sybase:Tds:127.0.0.1:2638/iqdemo

    SybaseIQ数据库64位Windows系统服务器v16.0安装包

    **Sybase IQ数据库详解** Sybase IQ是一款高性能的数据仓库服务器,尤其擅长于处理大规模的数据分析和数据挖掘任务。它以其高效的数据压缩、列式存储和并行处理能力著称,适用于大数据环境。在这个64位Windows系统...

    LINUX系统安装SybaseIQ数据库所用到的库文件合集

    在LINUX操作系统中安装SybaseIQ数据库(服务器或客户端),总是会报这样那样的错误,其原因大都是因为缺少某些库文件(文件后缀为.so, 类似于Windows系统中的.dll文件)。本帖分享的“LINUX系统安装SybaseIQ数据库所...

    Sybase IQ 官方文档(Sybase参考手册)

    本系列文档涵盖了从入门到高级的全方位知识,包括系统介绍、安装配置、参考手册以及系统管理指南。 **1. Introduction to Sybase IQ** 《Introduction to Sybase IQ》引导读者了解Sybase IQ的基本概念、架构和主要...

    Sybase IQ 16.0中文版本 管理:数据库

    - **从 UNIX 系统连接**:通过 TCP/IP 协议可以轻松地从远程系统连接到 Sybase IQ 服务器。 - **从 Windows 系统连接**:Windows 平台上提供了更多的连接工具,如 ODBC 驱动程序等。 - **连接到嵌入式数据库**:...

    列式数据库评测续集——SybaseIQ和其他数据库比较[归纳].pdf

    SybaseIQ和其他数据库比较 在本文中,我们将继续对列式数据库SybaseIQ和其他数据库进行比较,并对其性能进行测试。在上一篇文章中,我们已经介绍了SybaseIQ 15.2版本的功能特点,并进行了TPC-H scale=10、SSB scale...

    SybaseIQ数据库备份与恢复操作

    3. **启动utility_db**:启动SybaseIQ自带的utility_db数据库,以便进行恢复操作。 4. **登录utility_db**:通过`dbisql`登录utility_db数据库。 5. **执行还原**:使用`restore database`命令将备份文件还原到新...

    SybaseIQ_15.1_中文快速入门.pdf

    - 运行`"%ALLUSERSPROFILE%\SybaseIQ\demo\mkiqdemo"`命令来创建演示数据库。 - 也可以通过菜单项“启动Sybase IQ演示数据库”来自动创建演示数据库。 #### 自定义数据库创建 文档提供了列出所有选项来自定义...

    Sybase IQ“绿色数据库”构建绿色信息

    【Sybase IQ 绿色数据库】是 Sybase 公司为应对企业数据快速增长带来的存储和管理挑战而提出的创新理念。这个理念旨在通过高效利用资源,降低数据存储成本,提高查询性能,实现企业信息环境的可持续发展。Sybase IQ ...

    SybaseIQ数据库-64位LINUX系统服务器v16.0安装包

    SybaseIQ数据库64位LINUX系统服务器v16.0安装包,可选择Express Edition模式安装(在该模式下无试用时长30天限制、无使用功能限制、数据库最大容量5GB),只能安装在64位的LINUX操作系统(IA-AMD架构)上。...

    SybaseIQ数据库v16.0版本指南文档合集(简体中文版)

    SybaseIQ数据库v16.0版本指南文档合集,全部是简体中文版的,包含多大34份文档内容十分全面,其中有原Sybase公司发布的《TransactSQL用户指南》,非常适合数据库初学者使用,而网上目前能找到的指南文档大都是英文版...

    sybaseiq数据库迁移实例.pdf

    Sybase IQ数据库迁移是一项复杂而关键的任务,尤其在数据中心项目开发、实施和维护的过程中。这涉及到数据的安全性、完整性以及业务连续性。Sybase IQ是一款高性能的数据仓库系统,设计用于处理大规模的联机分析处理...

    Sybase IQ 快速入门

    - 运行 `%ALLUSERSPROFILE%\SybaseIQ\demo\mkiqdemo` 命令创建数据库。 - 可以通过“开始”菜单中的相应选项启动演示数据库创建向导。 3. **查询与更新数据库** - **工具推荐**:使用 Interactive SQL (`dbisql`...

    linux sybase iq odbc配置

    - 如果 `/etc/odbc.ini` 文件已有其他数据库的配置,你需要备份原有的内容,然后用Sybase IQ的`.odbc.ini`文件创建一个软链接到 `/etc/odbc.ini`,命令如下: ``` ln -s /home/Sybase/.odbc.ini /etc/odbc.ini `...

    sybase iq12.6sybase iq12.6

    根据提供的信息,我们可以了解到文档是关于Sybase IQ 12.6快速参考指南的一部分,它由Raymond Mardle编写,并且可以在特定网站上下载。接下来,我们将详细解析该文档中涉及的一些关键知识点。 ### Sybase IQ 12.6 ...

    Sybase IQ 16.0中文版本 管理:用户管理和安全

    综上所述,Sybase IQ 16.0提供了全面的安全管理功能,涵盖了从用户管理到数据加密的各个方面,为组织提供了强大的工具来保护其数据库资产。通过对这些功能的合理运用,可以有效地提高系统的整体安全性。

Global site tag (gtag.js) - Google Analytics