当前位置:网站首页>Sql语句遇到的错误,求解
Sql语句遇到的错误,求解
2022-06-30 03:56:00 【CSDN问答】
问题遇到的现象和发生背景
为什么sql语句在SQL server中可以正常执行,一加上引号和分号之后在Visual Studio中运行出错
问题相关代码,请勿粘贴截图
string sql = "select 病人.*,挂号.挂号日期,挂号.序号,挂号.挂号科室,挂号.挂号医生,挂号.号别,挂号.挂号费,挂号.是否收费,挂号.是否退号 from 病人,挂号 where 病人.门诊号=挂号.门诊号";
运行结果及报错内容
在“挂号附近有语法错误”
我的解答思路和尝试过的方法
在sqlserver中可以正常执行
我想要达到的结果
不报错


sql语句附近的代码

调用的SqlUtil里的方法

边栏推荐
- [operation] write CSV to database on May 28, 2022
- How to analyze and solve the problem of easycvr kernel port error through process startup?
- 【力扣刷题总结】数据库题目按知识点分类总结(持续更新/简单和中等题已完结)
- 【作业】2022.5.25 MySQL 查操作2
- 云原生入门+容器概念介绍
- 利用反射整合ViewBinding和ViewHolder
- 【模糊神经网络预测】基于模糊神经网络实现水质预测含Matlab源码
- yarn的安装和使用
- 各位大佬,flink 1.13.6,mysql-cdc2.2.0,抽取上来的datetime(6)类
- [note] May 23, 2022 MySQL
猜你喜欢

(Reprinted) an article will take you to understand the reproducing kernel Hilbert space (RKHS) and various spaces

How to analyze and solve the problem of easycvr kernel port error through process startup?

Grasp grpc communication framework in simple terms

Interface test tool postman

From 2500 a month, no one wants to go to the programming road of the technical director of a large factory | my ten years

Play with algorithm interview together, nanny level strategy (with high-definition codeless algorithm summary map), recommended collection

laravel9本地安裝

dbt产品初体验

(03).NET MAUI实战 基础控件

第十一天 脚本与游戏AI
随机推荐
LitJson解析 生成json文件 读取json文件中的字典
ReSharper 7. Can X be used with vs2013 preview? [off] - can resharper 7 x be used with VS2013 preview? [closed]
Semantic segmentation resources
Solve the problem of Navicat connecting to the database
lego_loam 代码阅读与总结
(03). Net Maui actual combat basic control
How to analyze and solve the problem of easycvr kernel port error through process startup?
【力扣刷题总结】数据库题目按知识点分类总结(持续更新/简单和中等题已完结)
What does the hyphen mean for a block in Twig like in {% block body -%}?
The school training needs to make a registration page. It needs to open the database and save the contents entered on the registration page into the database
Hash design and memory saving data structure design in redis
SDS understanding in redis
第十一天 脚本与游戏AI
Redis中的SDS理解
[frequently asked questions] modularization of browser environment and node environment
Half a year after joining the company, I was promoted to a management post
华为云原生——数据开发与DataFactory
You know AI, database and computer system
Litjson parses the generated JSON file and reads the dictionary in the JSON file
Hisense A7 ink screen mobile phone cannot be started