当前位置:网站首页>How does sqlserver insert or update the number of weeks of the day instead of text
How does sqlserver insert or update the number of weeks of the day instead of text
2022-04-23 12:16:00 【CSDN Q & A】
SQLserver How to insert or update the number of weeks of the day ,bit Not the text .
Please grant me your advice
Take the answer :
Your problem can't be realized SQLServer bit type Can only store 0 1 null Unable to store the number of weeks . If you want to get the day of the week, you can use the following statement
-- Set the language of the database to Chinese
SET LANGUAGE N'Simplified Chinese'
-- Get the day of the week
SELECT DATENAME(weekday,GETDATE())
版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204162106055566.html
边栏推荐
- Chapter 4: enable and disable im column storage for materialized view (IM 4.6)
- 第四章 为IM 启用填充对象之强制填充In-Memory对象:教程(IM 4.7)
- 画结果图推荐网址
- Qt重绘事件与剪切
- 为什么要有包装类,顺便说一说基本数据类型、包装类、String类该如何转换?
- Im architecture: CPU architecture: SIMD vector processing (im-2.3)
- Why is the premise of hash% length = = hash & (length-1) that length is the nth power of 2
- Lesson 25 static member variables of classes
- C# F23. Stringsimilarity Library: String repeatability, text similarity, anti plagiarism
- Tips for installing MySQL service in windows11: Install / Remove of the Service denied
猜你喜欢
In idea Solution to the problem of garbled code in Chinese display of properties file
Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
Debug Jest test cases in VSCode, debug Jest test cases in VSCode, middle note basedir=$(dirname "$" (echo "$0" sed -e -e, s, \ \, / "-e").
Interpretation 3 of gdpr series: how do European subsidiaries return data to domestic parent companies?
同态加密技术学习
论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
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
【Redis 系列】redis 学习十三,Redis 常问简单面试题
Fastjson 2 来了,性能继续提升,还能再战十年
1.Electron开发环境搭建
随机推荐
Next.js 静态数据生成以及服务端渲染的方式
Why is the premise of hash% length = = hash & (length-1) that length is the nth power of 2
SPSS之单因素方差分析
worder字体网页字体对照表
Qt双缓冲绘图
Here comes the detailed picture and text installation tutorial of H5 game
On using go language to create websocket service
激活函数之阶跃函数
1. Construction of electron development environment
Optimize connections using connection groups (IM 6)
The fourth chapter is about enabling and disabling the im column storage of table space for im enabled filling objects (IM 4.5)
How to expand the capacity of the server in the 100 million level traffic architecture? Well written!
The fourth chapter is the enable and disable columns of IM enabled fill objects (Part III of im-4.3)
Qt绘制图像
IDEA设置版权信息
获取钉钉考勤机打卡记录
MySQL 的主从复制配置
远程访问家里的树莓派(上)
Qt一个进程运行另一个进程
Force buckle - 70 climb stairs