存储过程 create proc test@fileName varchar(255)as select * from file_table where file_name=@fileName--调用exec test 'xxx' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CREATE PROC Test@S nvarchar(20)ASselect *from file_table where file_name=@S 谢谢 再问一个问题我以前在VC中是这样打开使用的strSQL.Format("select *from file_table where file_name='%s'",del_filename); if(!OpenRecordSet(m_pRecordset,strSQL)) { AfxMessageBox("没有成功打开数据表"); return false; } 现在换成存储过程了 该怎么使用这个存储过程呢? 谢谢 再问一个问题我以前在VC中是这样打开使用的strSQL.Format("select *from file_table where file_name='%s'",del_filename); if(!OpenRecordSet(m_pRecordset,strSQL)) { AfxMessageBox("没有成功打开数据表"); return false; } 现在换成存储过程了 该怎么使用这个存储过程呢? CString strSQL; strSQL.Format("select *from file_table where file_name='%s'",del_filename); create proc pro_gas set nocount onselect *from file_table where file_name='%s'set nocount off 请求把下面C#方法转成存储过程 SQL-DMO(ODBC SQL State:42000),这个问题怎么解决,请高手帮忙! 有没有办法更改表的主键类型,并且让其他表对应的外键也作出响应的更改??? 同一SQL,在同一数据库中执行时间差很远 无法加载DLL.xpstar90.dll或它引用的一个DLL.原因126(找不到指定模块) 使用sql语句计算房晚数 如何更改sa用户的默认数据库? sql server连接不上 存储过程中字符串连接 关于动态创建数据库的问题!请帮忙,如果分不够,可以再加! 续 求出最近三天的日期。。。。。。。。 sql排序问题
@S nvarchar(20)
AS
select *
from file_table
where file_name=@S
再问一个问题
我以前在VC中是这样打开使用的
strSQL.Format("select *from file_table where file_name='%s'",del_filename);
if(!OpenRecordSet(m_pRecordset,strSQL))
{
AfxMessageBox("没有成功打开数据表");
return false;
} 现在换成存储过程了 该怎么使用这个存储过程呢?
再问一个问题
我以前在VC中是这样打开使用的
strSQL.Format("select *from file_table where file_name='%s'",del_filename);
if(!OpenRecordSet(m_pRecordset,strSQL))
{
AfxMessageBox("没有成功打开数据表");
return false;
} 现在换成存储过程了 该怎么使用这个存储过程呢?
strSQL.Format("select *from file_table where file_name='%s'",del_filename); create proc pro_g
as
set nocount on
select *from file_table where file_name='%s'
set nocount off