当前位置:网站首页>求一个能判断表中数据,只填充不覆盖的sql
求一个能判断表中数据,只填充不覆盖的sql
2022-06-28 03:53:00 【CSDN问答】
问题遇到的现象和发生背景
我主表中三个字段需要填充内容(其中一个是新增字段的全为null,另外两个字段部分含有数据,其余均为null)。
需求
我需要向表中填充数据,并且不能覆盖表中已有数据
运行结果及报错内容
我的解答思路和尝试过的方法
我是将主表三个字段中全为空的记录批量填充入副表的相应数据,然后手动录入其余的记录。
我想要达到的结果
求一个能判断表中数据,只填充不覆盖的sql
边栏推荐
- Is the securities account opened by qiniu safe? How to open an account
- A summary of my recent situation in June 2022
- Multithreading and high concurrency III: AQS underlying source code analysis and implementation classes
- 如何遍历collections.OrderedDict,服了又忘记items
- Sorting from one stack to another
- Reading notes of top performance version 2 (II) -- CPU monitoring
- 27年,微软IE结束了!
- 抖音实战~关注博主
- RT-Thread 双向链表(学习笔记)
- PostgreSQL 实现批量更新、删除、插入
猜你喜欢
Reading notes of top performance version 2 (II) -- CPU monitoring
Secouer le son et se battre ~ prêter attention au blogueur
10: 00 interview, came out at 10:02, the question is really too
Visualization of loss using tensorboard
From meeting a big guy to becoming a big guy, shengteng AI developer creation day brings infinite possibilities to developers
Multi project design and development · introduction to class library project
测试/开发程序员真的是青春饭吗?世界是公平的,咱们都凭实力说话......
GO语言-select语句
How to traverse collections Ordereddict, taking it and forgetting items
leetcode:714. The best time to buy and sell stocks includes handling fee [DP dual status]
随机推荐
Iso8191 test is mentioned in as 3744.1. Are the two tests the same?
2022年中國音頻市場年度綜合分析
Multi project design and development · introduction to class library project
filinCdc 的sql,多表的时候总报这个错,请问下该怎么解决呀
2022-06-27:给出一个长度为n的01串,现在请你找到两个区间, 使得这两个区间中,1的个数相等,0的个数也相等, 这两个区间可以相交,但是不可以完全重叠,即两个区间的左右端点不可以完全一样。
A queue of two stacks
03 summary of various additions, updates and deletions of mongodb documents
快速下载JDK,除了官方Oracle下载,还有国内可以有最新版本的下载地址吗
领歌leangoo敏捷看板工具新增导出卡片文档和粘贴共享脑图节点功能
Has anyone ever used CDC to synchronize to MySQL with a deadlock?
[small program practice series] e-commerce platform source code and function implementation
Introduction to multi project development, basic design class library project use
leetcode - 329. Longest increasing path in matrix
If mysqlcdc sets multiple parallelism, will the incremental data repeat?
设计一个有getMin功能的栈
CDC全量抽取mysql数据时,怎么才能加快ChunkSplitter呢?
Meichuang data security management platform has obtained the evaluation certificate of "data security product capability verification plan" of the Institute
From zero to one, I will teach you to build a "search by text and map" search service (I)
PostgreSQL implements batch update, deletion and insertion
2021年终总结及2022年展望