如何执行从C程序中的SQL语句? [英] How to execute sql statements from a C program?

查看:138
本文介绍了如何执行从C程序中的SQL语句?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能执行从C程序的SQL语句。例如,我想显示的输出

从C程序SELECT * FROM EMP

。我是否需要使用存储过程做呢?我需要的库文件来做到这一点。我的C编译器是微小的C编译器和我目前有SQL服务器的工作室也邀请了2005年建议的Unix / AIX平台+ GCC。

在此先感谢..

How can I execute SQL statements from a C program. For example I want to display the output of

select * from EMP

from a c program. Do I need to do it using Stored Procedures? Do I need any library files to do it. My C compiler is Tiny C Compiler and I am currently having SQL server studio 2005. Suggestions for Unix/AIX platform + GCC are also invited.

Thanks in advance..

推荐答案

我现在用下面的方法解释<一个href=\"http://stackoverflow.com/questions/1259462/is-it-a-good-way-to-use-system-for-database-scripts-from-c\">in这个问题由我。它是满足我的要求。

I am now using the following method explained in this question by me.It is satisfying my requirements.

这篇关于如何执行从C程序中的SQL语句?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆