当前位置:网站首页>About MySQL data insertion (advanced usage)
About MySQL data insertion (advanced usage)
2022-08-02 01:15:00 【CSDN Q&A】
Question: How to add a new column in the tableAdd a column of data, which is used to judge the data situation of the existing column. The effect of the specific problem is as follows: (The solution must be adopted)
Known table: t_score
id subject score
1 JAVA 60
2 MYSQL 80
3 LINUX 55
4 PYTHON 50
5 HTML 70
Write a sql, increase the passing column, as follows (the passing score is 60):
id subject score mark
1 JAVA 60 ok
2 MYSQL 80 ok
3 LINUX 55 no
4 PYTHON 50no
5 HTML 70 ok
The code for creating the table is as follows
# 2.Title known table: t_scoredrop table if exists t_score;create table if not exists t_score( id int comment 'student number', `subject` varchar(10) comment 'subject', score int comment 'grades')engine = innodb default charset = utf8 comment 'Grade Sheet';# Insert data insert into t_score values (1,'JAVA',60),(2,'MYSQL',80),(3,'LINUX',55),(4,'PYTHON',50),(5,'HTML',70);# View table data select * from t_score; 边栏推荐
- NFT到底有哪些实际用途?
- ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
- 微信支付软件架构,这也太牛逼了!
- 简单工厂模式
- Kubernetes — 核心资源对象 — 网络
- 百度、百图生科 | HelixFold-Single: 使用蛋白质语言模型作为替代进行无MSA蛋白质结构预测
- nodeJs--mime module
- hutool工具-----JSON工具-JSONUtil
- swing的Jlist列表滚动条以及增加元素的问题
- 滴滴秋招提前批正式开始,现在投递免笔试
猜你喜欢

MInIO入门-03 秒传+大文件分片上传

Reflex WMS中阶系列6:对一个装货重复run pick会有什么后果?

go笔记——map

flex布局中使用flex-wrap实现换行

C语言:打印整数二进制的奇数位和偶数位

BGP first experiment

Stapler:1 靶机渗透测试-Vulnhub(STAPLER: 1)

Use flex-wrap to wrap lines in flex layout

ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)

Don't concatenate strings with jOOQ
随机推荐
哪里有期货开户的正规途径?
BGP综合实验 建立对等体、路由反射器、联邦、路由宣告及聚合
23.卷积神经网络实战-ResNet
Microsoft PC Manager V2.1 beta version officially released
FlinkSQL CDC实现同步oracle数据到mysql
Go语学习笔记 - gorm使用 - gorm处理错误 Web框架Gin(十)
理解分布式系统中的缓存架构(下)
MLX90640 红外热成像仪测温模块开发笔记(完整版)
MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
AXI4协议介绍
C语言实验十 函数(二)
Realize deletion - a specified letter in a string, such as: the string "abcd", delete the "a" letter in it, the remaining "bcd", you can also pass multiple characters to be deleted, and pass "ab" can
Reflex WMS中阶系列6:对一个装货重复run pick会有什么后果?
R语言使用cph函数和rcs函数构建限制性立方样条cox回归模型、使用anova函数进行方差分析通过p值确认指定连续变量和风险值HR之间是否存在非线性关系
CVPR 2022 | SharpContour:一种基于轮廓变形 实现高效准确实例分割的边缘细化方法
JS中对作用域链的理解(查找变量)
go mode tidy出现报错go warning “all“ matched no packages
String splitting function strtok exercise
mapbox使用教程
百度、百图生科 | HelixFold-Single: 使用蛋白质语言模型作为替代进行无MSA蛋白质结构预测