<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>附录C:ACI示例 — 神通数据库帮助手册</title>
<link rel="stylesheet" href="../../../../_static/stdoc.css" type="text/css" />
<link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../../_static/searchbox.css" type="text/css" />
<link rel="stylesheet" href="../../../../_static/zTreeStyle/zTreeStyle.css" type="text/css" />
<link rel="stylesheet" href="../../../../_static/fancybox/jquery.fancybox.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../../../',
VERSION: '7.0.8',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: false
};
</script>
<script type="text/javascript" src="../../../../_static/jquery.js"></script>
<script type="text/javascript" src="../../../../_static/underscore.js"></script>
<script type="text/javascript" src="../../../../_static/doctools.js"></script>
<script type="text/javascript" src="../../../../_static/translations.js"></script>
<script type="text/javascript" src="../../../../_static/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../../../_static/toctree.js"></script>
<script type="text/javascript" src="../../../../_static/fancybox/jquery.fancybox.js"></script>
<script type="text/javascript" src="../../../../_static/jquery.inview.js"></script>
<script type="text/javascript" src="../../../../_static/switchoutput.js"></script>
<script type="text/javascript" src="../../../../_static/jquery.cookie.js"></script>
<script type="text/javascript" src="../../../../_static/cloud.js"></script>
<link rel="shortcut icon" href="../../../../_static/stlogo.ico"/>
<link rel="top" title="神通数据库帮助手册" href="../../../../index.html" />
<link rel="up" title="ACI (C/C++)程序员开发手册" href="index.html" />
<link rel="next" title="ACCI(C++)程序员开发指南" href="../acci/index.html" />
<link rel="prev" title="ACILastInsertId()" href="han_shu/qita/acilastinsertid.html" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="../../../../_static/ie6.css" type="text/css" media="screen" charset="utf-8" />
<![endif]-->
<script type="text/javascript" src="../../../../tocdata.js"></script>
<script>
DOCUMENTATION_OPTIONS.PAGENAME = "docs/dbdevmanual/csql/aci/shili"
$('.show_ebnf_source').fancybox({
maxWidth : 800,
maxHeight : 600,
fitToView : false,
width : '70%',
height : '70%',
autoSize : true,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
</script>
<style>
#sidetoctree {
background-color: #FFF;
}
#sidetoctree ul{
margin-left: -10px;
list-style: square;
}
</style>
</head>
<body role="document">
<div class="header" role="banner">
<div class="logo">
<a href="../../../../index.html">
<img class="logo" src="../../../../_static/stlogo.png" alt="Logo"/>
</a>
<img class="stdbword" src="../../../../_static/stdbword.png" alt="专业的 数据库*大数据*数据挖掘 产品及方案提供商"/>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="related" role="navigation" aria-label="related navigation">
<h3>导航</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../acci/index.html" title="ACCI(C++)程序员开发指南" accesskey="N">
<img class="next_page" src="../../../../_static/next_page.png" />
</a>
</li>
<li class="right" >
<a href="han_shu/qita/acilastinsertid.html" title="ACILastInsertId()" accesskey="P">
<img class="pre_page" src="../../../../_static/pre_page.png" />
</a>
</li>
<li class="nav-item nav-item-0"><a href="../../../../index.html" title="神通数据库帮助手册">
<img class="rellink_home" src="../../../../_static/home.png" />
</a> »</li>
<li class="nav-item nav-item-1"><a href="../../../dbdevmanual.html" >数据库开发手册</a> »</li>
<li class="nav-item nav-item-2"><a href="../index.html" >C/C++ 语言开发手册</a> »</li>
<li class="nav-item nav-item-3"><a href="index.html" accesskey="U">ACI (C/C++)程序员开发手册</a> »</li>
</ul>
</div>
<div class="body" role="main">
<div class="section" id="c-aci">
<h1>附录C:ACI示例<a class="headerlink" href="#c-aci" title="永久链接至标题">¶</a></h1>
<div class="section" id="id1">
<h2>数据库连接<a class="headerlink" href="#id1" title="永久链接至标题">¶</a></h2>
<div class="section" id="id2">
<h3>单用户连接<a class="headerlink" href="#id2" title="永久链接至标题">¶</a></h3>
<p>ACILogon:</p>
<div class="highlight-c"><div class="highlight"><pre><span class="cp">#include <iostream></span>
<span class="cp">#include <aci.h></span>
<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="n">ACIEnv</span> <span class="o">*</span><span class="n">m_penv</span> <span class="o">=</span> <span class="nb">NULL</span><span class="p">;</span><span class="cm">/*环境句柄*/</span>
<span class="n">ACIError</span> <span class="o">*</span><span class="n">m_perr</span> <span class="o">=</span> <span class="nb">NULL</span><span class="p">;</span><span class="cm">/*错误句柄*/</span>
<span class="n">ACIServer</span> <span class="o">*</span><span class="n">m_psrv</span> <span class="o">=</span> <span class="nb">NULL</span><span class="p">;</span><span class="cm">/*服务器句柄*/</span>
<span class="n">ACISvcCtx</span> <span class="o">*</span><span class="n">m_psvc</span> <span class="o">=</span> <span class="nb">NULL</span><span class="p">;</span><span class="cm">/*服务上下文句柄*/</span>
<span class="n">sword</span> <span class="n">r</span> <span class="o">=</span> <span class="n">ACI_SUCCESS</span><span class="p">;</span>
<span class="kt">char</span> <span class="o">*</span><span class="n">m_dblink</span> <span class="o">=</span> <span class="p">(</span><span class="kt">char</span> <span class="o">*</span><span class="p">)</span><span class="s">"localhost:2003/osrdb"</span><span class="p">;</span>
<span class="kt">char</span> <span class="o">*</span><span class="n">m_dbuser</span> <span class="o">=</span> <span class="p">(</span><span class="kt">char</span> <span class="o">*</span><span class="p">)</span><span class="s">"sysdba"</span><span class="p">;</span>
<span class="kt">char</span> <span class="o">*</span><span class="n">m_dbpwd</span> <span class="o">=</span> <span class="p">(</span><span class="kt">char</span> <span class="o">*</span><span class="p">)</span><span class="s">"szoscar55"</span><span class="p">;</span>
<span class="c1">//初始化环境句柄</span>
<span class="n">r</span> <span class="o">=</span> <span class="n">ACIInitialize</span><span class="p">(</span><span class="n">ACI_DEFAULT</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">,</span> <span class="nb">NULL</span><span class=
没有合适的资源?快使用搜索试试~ 我知道了~
国产数据库之神通数据库安装包
共2000个文件
html:1999个
js:1个
需积分: 0 6 下载量 199 浏览量
2024-03-11
15:24:16
上传
评论 1
收藏 656.27MB ZIP 举报
温馨提示
国产数据库之神通数据库安装包
资源推荐
资源详情
资源评论
收起资源包目录
国产数据库之神通数据库安装包 (2000个子文件)
shili.html 695KB
alter_table.html 210KB
processing.html 209KB
measurements.html 206KB
constructors.html 163KB
editors.html 146KB
accessors.html 142KB
create_table.html 142KB
error.html 140KB
lob.html 130KB
interface.html 123KB
shiyong.html 111KB
ri_qi.html 109KB
shili.html 108KB
bind.html 107KB
lianjie.html 90KB
interface.html 89KB
bang_ding.html 85KB
outputs.html 84KB
select.html 83KB
shi_yong.html 79KB
shiyong.html 77KB
Statement.html 72KB
gis.html 67KB
miao_shu.html 67KB
jia_zai.html 65KB
biancheng.html 65KB
async_run.html 64KB
Number.html 60KB
shiyong.html 59KB
select_group_by.html 54KB
json.html 53KB
create_index.html 53KB
grant.html 52KB
Cursor.html 51KB
MODULE_STPython.html 49KB
shiyong.html 48KB
guanli.html 48KB
gai_shu.html 47KB
sql_execute.html 47KB
insert.html 47KB
xml_han_shu.html 46KB
create_trigger.html 45KB
yi_dong.html 45KB
shu_qian.html 44KB
ResultSet.html 43KB
warning.html 43KB
sql.html 41KB
shu_ju.html 41KB
miscellaneous.html 40KB
shili.html 40KB
linear_referencing.html 39KB
alter_database.html 39KB
alter_index.html 38KB
truncate.html 38KB
return.html 38KB
create_function.html 37KB
shiyong.html 37KB
create_view.html 37KB
jie_guo_ji.html 36KB
IntervalDS.html 36KB
select_from.html 35KB
IntervalYM.html 35KB
create_sequence.html 35KB
lob.html 34KB
shiyong.html 33KB
Timestamp.html 33KB
create_database.html 33KB
wei_lie.html 33KB
shi_tu.html 32KB
select_where.html 32KB
update.html 32KB
create_external_table.html 32KB
Connection.html 32KB
MetaData.html 31KB
duo.html 31KB
wai_bu.html 31KB
Date.html 31KB
create_tablespace.html 31KB
alter_sequence.html 30KB
bushu.html 30KB
kongjian_jihe.html 29KB
canshu.html 29KB
to_char.html 29KB
alter_tablespace.html 29KB
declare.html 29KB
cha_xun.html 28KB
revoke.html 28KB
implicit_rowid.html 28KB
alter_trigger.html 28KB
json.html 27KB
lei_xing.html 27KB
cuowu.html 27KB
ju_bing.html 27KB
read_write.html 27KB
create_materialized_view.html 26KB
yuju.html 26KB
fu_lu_b.html 26KB
shi_yong.html 26KB
trunc.html 25KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
飞翔的企鹅一号
- 粉丝: 16
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功