• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >sybase > 使用动态SQL(ASE12.0+)

使用动态SQL(ASE12.0+)

作者:匿名 字体:[增加 减小] 来源:互联网

匿名通过本文主要向大家介绍了mybatis动态sql,动态sql,动态sql语句,oracle 动态sql,mybatis动态sql语句等相关知识,希望本文的分享对您有所帮助
</div>

With a certain regularity, Sybase users ask questions like "How can I use dynamic SQL in ASE ?" in the Sybase-related newsgroups. There are a number of different answers to this question.

The elegant way: execute-immediate (ASE 12.0+)
First, if you're running ASE 12.0 or later, you can use the execute immediate feature, which gives you full dynamic SQL capabilites, as it lets you execute dynamically generated SQL command strings. A simple example:

declare @c varchar(25)select @c = "select getdate()"exec (@c)

While this example is hardly something to get excited about, execute-immediate has opened a new dimension to the sort of thing you can do with T-SQL. The most important characteristic is that you can now create stored procedures (and triggers) that are independent of the schema of tables -- a highly useful thing to do.
My book "Tips, Tricks & Recipes for Sybase ASE" has a chapter dedicated to execute-immediate, describing not only the inner workings, but also a wide range of possible applications. This is probably the most complete writeup about execute-immediate that's available.



</div> </div> </div> </div>
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 使用动态SQL(ASE12.0+)

相关文章

  • 分析Sybase的数据空间占用为何如此之大
  • 让SQL飞起来
  • 如何将不同网段或拨号环境下的客户端连接到ASA服务器
  • Sybase批量操作(BCP)的设计和实现
  • Sybase 安装及系统管理(下)
  • DBCC
  • 在PB中如何对ASA进行数据备份
  • Sybase数据集成套件介绍
  • Sybase SQL remote更改传输断点的方法
  • 三层应用的核心----EAServer

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • 重置SQL Remote消息
    • Sybase数据库函数库
    • Sybase安装。
    • 精细讲解实战经验创建Sybase用户数据库
    • Sybase数据库使用的一则心得
    • 教你学会怎样升级到SQL Anywhere10(15)
    • 教你学会怎样升级到SQL Anywhere10(12)
    • 有关Sybase系统的数据同步与复制问题
    • Sybase应用集成产品助力Aviall航空服务公司
    • Sybase数据库简介

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有