fk in insert mysql

INSERT INTO joke(joke_text, joke_date, author_id)
VALUES (‘Humpty Dumpty had a great fall.’, ‘1899–03–13’, 
        (SELECT id FROM author WHERE author_name = ‘Famous Anthony’));

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
mysql add foreign key cont how to put foreign key in mysql fk in mysql add foreign key mysql to existing table mysql query to add foreign key constraint mysql create fk how to insert values for foreign key in mysql adding foreign key in mysql add foreign key table mysql adding fk constraints in mysql how reference FK in mysql what is FK in mysql how to create foreign key in mysql how to use fk in mysql create fk in mysql mysql add foreign key to existing table mysql put table as FK mysql add foreign key how to add foreign key in mysql add foreign key to existing table mysql add foreign key mysql mysql insert into with foreign key foreign key in mysql how to add foreign key in table mysql create table with foreign key constraint mysql add constraint foreign key in mysql mysql insert FK mysql add foriegn key mysql insert into foreign key how to insert to a database that has forein keys constraints php sql insert dataa with forgn keys how to insert into foreign key table how to add a value to a foreign key in sql mysql insert into table insert example in mysql mysql insert how to insert data in table with foreign key in mysql how to insert data into a foreign key table mysql insert foreign key insert foreign key sql query for inserting data in a table having foreign key insert query for the table having foriegn key in phpmyadmin mysql SELECT ID and insert it in another table as foreign key insert into foreign key how to input a value to a table which has foreign key insert data into table with foreign key constraint mysql how to insert into a value within a table vsidation mysql insert into how to insert foreign key values mysql how to insert values in a table with foreign key reference mysql select query and populate foreign data in foreign key variable insert foreign key mysql insert with foreign key insert mysql foreign key insert into foreign key mysql inster foragin key INSERT INTO with foreign key MySQL insert foreign key from another table insert into existing table mysql how to insert foreign key value into table in mysql insert data with foreign key from another table mysql insert into table foreign key mysql fk in insert mysql
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source