Quantcast
Channel: SQL conditional insertion of data. SQLite - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Gordon Linoff for SQL conditional insertion of data. SQLite

You would use insert . . . select:insert into customers (id, v1, v2, v3) select m.id, null, null, null from missing m where m.v1 = 'Y' and m.v2 = 'Y' and m.v3 = 'Y';That said, you should revise your...

View Article


Answer by Tim Biegeleisen for SQL conditional insertion of data. SQLite

Given that you are relatively new to SQL, I will start off by suggesting that you change your approach. By having one table with data present, and another table with data missing, you are making this...

View Article


SQL conditional insertion of data. SQLite

This is essentially a question about inserting data into one table dependent on information in another table. The db is implemented with sqlite3. I am a relatively new user of SQL.I have two tables,...

View Article
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>