MySql 关键字冲突解决办法
2024-10-18 22:37:52
今天把项目发布到另一台机器上时,因为mysql版本不一致,出现了关键字冲突,virtual关键字,不清楚是不是mysql添加的新特性。
select * from herb where name="a" and virtual = 1;
解决办法时,将 冲突字段用``引起来(键盘左上方1 左边的字符),这样就没问题,
但是最好的解决方法,还是要有良好的设计。
最新文章
- [转]学术型 github 畅想
- 传统MySQL+ Memcached架构遇到的问题
- atexit函数和两种特殊文件权限位
- 夺命雷公狗---Thinkphp----15之遍历出来的栏目页的完成
- 2014年全球SEO行业调查报告
- Python实战(1)
- RazorEngine(未解决,留底)
- Google正确搜索方法
- update-database时出现Cannot attach the file
- MAC Intellij IDEA 常用快捷键
- css清除浮动float的三种方法总结
- iOS 错误 之 Potential leak of an object stored into 'cs'
- 四,前端---constructor与prototype
- 面试中遇到的原生js题总结
- 天转凉了,注意保暖,好吗(需求规格说明书放在github了)
- android 开发 更好的数据存放,回调,处理class模式,适合与各种布局适配器class一起使用
- mongo的csv文件参考
- 使用IntelliJ IDEA进行Python远程调试的需求(未完)
- Python和MySQL数据库交互PyMySQL
- Ubuntu上装KVM:安装、初次使用
热门文章
- specialized English for automation-Lesson 1 Analog Amplifiers
- tar格式 方法安装MySQL后,初次登录出现 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement
- 软工2017第三周作业之找bug——测试报告
- Hive之 数据类型
- Jquery中的has、find、filter方法区别
- iSCSI 协议
- (转)SqlServer为大数据量表建索引
- CentOS6.5 安装codeblocks-13.12
- 学习blus老师js(1)--基础
- C++ 构造函数_初始化列表