C#配置数据源

编程入门 行业动态 更新时间:2024-10-28 19:23:09
本文介绍了C#配置数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好, 我正在尝试在C#中配置图表,但我一直收到此错误消息: 变量名称< name>已经声明.变量名称在查询批处理或存储过程中必须是唯一的." 我试图更改变量名称,但该消息一直显示. 谢谢. 这是代码:

Hello, Im trying to configure a Chart in C# but i keep getting this error Message : "The variable name <name> as already been declared. Variable names must be unique within a query batch or a storage procedure." I tried to change the varible name and that message keeps showing. Thanks. Heres the code :

declare @var varchar SET @var = ''

继承人PrtScreen postimage/image/saavng62p/ [ ^ ]

Heres a PrtScreen postimage/image/saavng62p/[^]

推荐答案

哦,您不能在中的数据源 您只能编写"select ....","delete ...."等查询. 但是您不能声明这样的东西,如果需要的话,将不得不使用存储过程并从存储过程中选择输出. oh you can''t do that on queries in a datasource in you can only write queries like "select ...." "delete...." etc. but you can not declare stuff like that, if you need it, will have to do it using an stored procedure and select the output from the stored proc.

更多推荐

C#配置数据源

本文发布于:2023-07-14 13:44:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1104810.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据源

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!