当前位置:网站首页>SQLserver怎么插入或更新当天的星期数,bit而不是文本
SQLserver怎么插入或更新当天的星期数,bit而不是文本
2022-04-23 12:08:00 【CSDN问答】
SQLserver怎么插入或更新当天的星期数,bit而不是文本。
请不吝赐教
采纳答案:
你这个问题是不能实现的 SQLServer bit类型 只能存储 0 1 null 无法实现星期数的存储 。如果要获取星期几的话可以用下面的语句
--设置数据库的语言为中文
SET LANGUAGE N'Simplified Chinese'
--获取星期几
SELECT DATENAME(weekday,GETDATE())
版权声明
本文为[CSDN问答]所创,转载请带上原文链接,感谢
https://ask.csdn.net/questions/7693334
边栏推荐
- Fastjson 2 来了,性能继续提升,还能再战十年
- Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
- 宝塔面板命令行帮助教程(包含重置密码)
- 第四章 为物化视图启用和禁用IM列存储(IM 4.6)
- IDEA 代码格式化插件Save Actions
- Lesson 24 analysis of classical problems
- 软银愿景基金进军Web3安全行业 领投CertiK 6000万美元新一轮投资
- Interpretation 3 of gdpr series: how do European subsidiaries return data to domestic parent companies?
- 一文详解头部位姿估计【收藏好文】
- 第四章 为IM 启用填充对象之启用和禁用列(IM-4.3 第三部分)
猜你喜欢
在 VSCode 中调试 Jest 的测试用例,VSCode调试Jest测试用例报错basedir=$(dirname “$(echo “$0“ | sed -e ‘s,\\,/,g‘)“)解决
Tan Xiang, CEO of Kechuang · Pera software: the essence of zero trust is digital security. To B should also deeply study the user's mind
IDEA 中 .properties文件的中文显示乱码问题的解决办法
Application of remote integrated monitoring system in power distribution room in 10kV prefabricated cabin project
科创人·派拉软件CEO谭翔:零信任本质是数字安全,To B也要深研用户心智
PSCP 基本使用
一文详解头部位姿估计【收藏好文】
AI 视频云 VS 窄带高清,谁是视频时代的宠儿
亿级流量架构,服务器如何扩容?写得太好了!
NativeForMySQL 连接MySQL8 提示:1251- Client does not support authentication protocol
随机推荐
Master slave replication configuration of MySQL
异步时钟亚稳态 的解决方案——多bit信号
Next. JS static data generation and server-side rendering
Why is the premise of hash% length = = hash & (length-1) that length is the nth power of 2
Share two practical shell scripts
Windows2008系统如何切换PHP版本
论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
科创人·派拉软件CEO谭翔:零信任本质是数字安全,To B也要深研用户心智
Lesson 23 temporary objects
User interface and im expression (IM 5.6)
Fastjson 2 来了,性能继续提升,还能再战十年
Fabric 1.0 source code analysis (33) implementation of peer channel command and subcommand
激活函数之sigmoid函数
SOFA Weekly | 年度优秀 Committer 、本周 Contributor、本周 QA
Force buckle - 1137 Nth teponacci number
Resolution due to AMD not found_ ags_ x64. DLL, unable to continue code execution. Reinstallation of the program may solve this problem, Forza horizon 5
AI video cloud vs narrowband HD, who is the darling of the video era
第四章 为IM 启用填充对象之为IM列存储启用ADO(IM 4.8)
Im architecture: CPU architecture: SIMD vector processing (im-2.3)
[redis series] redis learning 13. Redis often asks simple interview questions