• 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+)

作者:匿名 字体:[增加 减小] 来源:互联网 时间:2017-06-28

匿名通过本文主要向大家介绍了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+)

相关文章

  • 2017-06-28Sybase程序设计中极易造成误解的内部规则
  • 2017-06-28巧妙设置Sybase用户权限来处理进程
  • 2017-06-28Acadian Asset Management
  • 2017-06-28国税总局CTAIS世贷项目
  • 2017-06-28Sybase数据库的碎片整理
  • 2017-06-28Sybase Rep Server的rep_agent不启动怎么办
  • 2017-06-28Sybase为ISP提供完善运行环境
  • 2017-06-28Sybase数据库死锁对策
  • 2017-06-28Sybase的数据定义语言
  • 2017-06-28Sybase交行客户信息分析系统解决方案

文章分类

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

最近更新的内容

    • 什么是触发器
    • Sybase数据库的性能优化
    • Sybase应用案例:中石化销售管理系统
    • SYBASE ASA数据库恢复方法
    • Sybase数据库使用的一则心得
    • SYBASE在ALPHA上的安装
    • tempdb
    • Sybase SQL remote 更改传输断点的方法
    • 重置SQL Remote消息
    • “中国象棋网”技术方案

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

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