当前位置:网站首页>Sql语句遇到的错误,求解
Sql语句遇到的错误,求解
2022-06-30 03:56:00 【CSDN问答】
问题遇到的现象和发生背景
为什么sql语句在SQL server中可以正常执行,一加上引号和分号之后在Visual Studio中运行出错
问题相关代码,请勿粘贴截图
string sql = "select 病人.*,挂号.挂号日期,挂号.序号,挂号.挂号科室,挂号.挂号医生,挂号.号别,挂号.挂号费,挂号.是否收费,挂号.是否退号 from 病人,挂号 where 病人.门诊号=挂号.门诊号";
运行结果及报错内容
在“挂号附近有语法错误”
我的解答思路和尝试过的方法
在sqlserver中可以正常执行
我想要达到的结果
不报错
sql语句附近的代码
调用的SqlUtil里的方法
边栏推荐
- Product thinking - is the future of UAV express worth looking forward to?
- [personal summary] learning plan
- Thingsboard tutorial (II and III): calculating the temperature difference between two devices in a regular chain
- Hebb and delta learning rules
- 如何利用FME 创建自己的功能软件
- 在大厂外包呆了三年,颠覆了我的认知!
- 各位大佬,flink 1.13.6,mysql-cdc2.2.0,抽取上来的datetime(6)类
- Redis中的Hash设计和节省内存数据结构设计
- [operation] write CSV to database on May 28, 2022
- GIS related data
猜你喜欢
SDS understanding in redis
Redis中的Hash设计和节省内存数据结构设计
MySQL performance optimization (5): principle and implementation of master-slave synchronization
Postman learning sharing
Hisense A7 ink screen mobile phone cannot be started
实用调试技巧
Number of students from junior college to Senior College (III)
When easycvr deploys a server cluster, what is the reason why one is online and the other is offline?
11: I came out at 11:04 after the interview. What I asked was really too
(03).NET MAUI实战 基础控件
随机推荐
December2020 - true questions and analysis of C language (Level 2) in the youth level examination of the Electronic Society
UML diagrams and list collections
GIS related data
[Thesis reading | deep reading] dane:deep attributed network embedding
Vscode+anaconda+jupyter reports an error: kernel did with exit code
[note] May 23, 2022 MySQL
(04).NET MAUI实战 MVVM
Arrangement of language resources of upgraded version
MySQL performance optimization (6): read write separation
[fuzzy neural network prediction] water quality prediction based on fuzzy neural network, including Matlab source code
2021-07-05
Postman learning sharing
如何通过进程启动来分析和解决EasyCVR内核端口报错问题?
Simple theoretical derivation of SVM (notes)
第十天 数据的保存与加载
Analysis of similarities and differences of various merged features (Union, merge, append, resolve) in ArcGIS
Magical Union
【力扣刷题总结】数据库题目按知识点分类总结(持续更新/简单和中等题已完结)
51 single chip microcomputer indoor environment monitoring system, mq-2 smoke sensor and DHT11 temperature and humidity sensor, schematic diagram, C programming and simulation
【个人总结】学习计划