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


sql语句附近的代码

调用的SqlUtil里的方法

边栏推荐
- [note] Introduction to data analysis on June 7, 2022
- Is the largest layoff and salary cut on the internet coming?
- Pytorch Profiler+ Tensorboard + VS Code
- laravel9本地安裝
- Semantic segmentation resources
- Huawei cloud native - data development and datafactory
- Introduction to cloud native + container concept
- 【笔记】2022.5.27 通过pycharm操作MySQL
- DRF -- nested serializer (multi table joint query)
- Cloud native -- websocket of Web real-time communication technology
猜你喜欢

实用调试技巧

laravel9本地安裝

How do college students make money by programming| My way to make money in College

【云原生】AI云开发平台——AI Model Foundry介绍(开发者可免费体验AI训练模型)

Arrangement of language resources of upgraded version

Product thinking - is the future of UAV express worth looking forward to?

MySQL performance optimization (6): read write separation

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

你清楚AI、数据库与计算机体系

Usage record of unity input system (instance version)
随机推荐
2021-07-05
【云原生】AI云开发平台——AI Model Foundry介绍(开发者可免费体验AI训练模型)
DO280私有仓库持久存储与章节实验
[operation] MySQL query operation 2 on May 25, 2022
第十一天 脚本与游戏AI
Usage record of unity input system (instance version)
Graduation project EMS office management system (b/s structure) +j2ee+sqlserver8.0
Pytorch Profiler+ Tensorboard + VS Code
【模糊神经网络预测】基于模糊神经网络实现水质预测含Matlab源码
Node red series (28): communication with Siemens PLC based on OPC UA node
.NET 7 的 JWT 配置太方便了!
The jupyter notebook kernel hangs up frequently and needs to be restarted
[punch in - Blue Bridge Cup] day 1 --% 7F format output
将DataBinding整合到Activity/Fragment的一种极简方式
[note] Introduction to data analysis on June 7, 2022
[0x0] open questions left by the principal
Magical Union
Interface testing -- how to analyze an interface?
ThingsBoard教程(二三):在规则链中计算二个设备的温度差
MySQL performance optimization (5): principle and implementation of master-slave synchronization