INSERT INTO Results (People, names )
SELECT d.id, 'Henry'
FROM Names f
JOIN People d ON d.id = f.id
Combine the static string Henry
with your SELECT
query.
More Related Contents:
- What is better subquery vs literal on IN clause in mysql
- INSERT INTO…SELECT for all MySQL columns
- MySQL #1093 – You can’t specify target table ‘giveaways’ for update in FROM clause
- Recreating a query using INNER JOIN? [duplicate]
- Getting the SUM() of claps and at the same time counting bookmarks in one query
- MySQL – UPDATE query based on SELECT Query
- Create a temporary table in a SELECT statement without a separate CREATE TABLE
- MySQL SELECT WHERE datetime matches day (and not necessarily time)
- MySQL Query – Records between Today and Last 30 Days
- Ordering by specific field value first
- MySQL DELETE FROM with subquery as condition
- CROSS/OUTER APPLY in MySQL
- SELECT / GROUP BY – segments of time (10 seconds, 30 seconds, etc)
- #1139 – Got error ‘repetition-operator operand invalid’ from regexp
- MySQL select statement with CASE or IF ELSEIF? Not sure how to get the result
- Checking multiple columns for one value
- MySQL difference between two rows of a SELECT Statement
- MySQL – How to search for exact word match using LIKE?
- MySQL – How to select data by string length
- How do I get the first day of the week of a date in mysql?
- MySQL error 1241: Operand should contain 1 column(s)
- quick selection of a random row from a large table in mysql
- Converting SELECT DISTINCT ON queries from Postgresql to MySQL
- mysql select sum group by date
- SELECT query return 1 row from each group
- Comma separated string of selected values in MySQL
- SELECT INTO Variable in MySQL DECLARE causes syntax error?
- MySQL Error: #1142 – SELECT command denied to user
- MySQL Select Multiple VALUES
- mySQL returns all rows when field=0