• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PowerCoder
博客园    首页    新随笔    联系   管理    订阅  订阅
2019年7月12日
SQL Server的NTEXT类型不支持等号"="操作(转载)
摘要: SQL SERVER – Fix: Error : 402 The data types ntext and varchar are incompatible in the equal to operator Some errors are very simple to understand but 阅读全文
posted @ 2019-07-12 17:47 PowerCoder 阅读(2691) 评论(0) 推荐(1)
SQL Server的唯一键和唯一索引会将空值(NULL)也算作重复值
摘要: 我们先在SQL Server数据库中,建立一张Students表: 该表的主键是列ID,该表的唯一键IX_UniqueStudentCode要求列StudentCode不能有重复值,但是列StudentCode可以为空值(NULL)。 首先我们插入四条数据到Students表中: 可以看到我们在最后 阅读全文
posted @ 2019-07-12 14:24 PowerCoder 阅读(2620) 评论(0) 推荐(1)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3