Create Table

Write a script that will create the tables necessary to support recipes. Save the script as create_tables.sql.

Do i do it like this:


Then name the file.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Data DudeCommented:
Are you asking us to create a recipe table, which essentially means are you asking us to do your homework for you?
lg5050Author Commented:
no i want to know do i just create a table called recipe then give the file a name.
Steve WalesSenior Database AdministratorCommented:
Much like your previous question, you should refer to the online documentation.

You've tagged this question as MSSQL and My SQL:


Read the appropriate docs, come back with what you've tried and maybe we can assist further.  We can't do your homework for you.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Jim HornMicrosoft SQL Server Data DudeCommented:
Go into SSMS, connect to a server, hit the New Query button, and type the below, changing the column_name_ stuff with the columns and data types that you want in table recipe

CREATE TABLE recipes (
   column_name_1 int, 
   column_name_2 int, 
   column_name_3 int) 

Open in new window

Then go to File menu item > Save {query name} As... and when the Windows Common File Dialog opens up type create_tables.sql
Jim HornMicrosoft SQL Server Data DudeCommented:
So ... how's it going?
lg5050Author Commented:
Thanks for you help!!
Vimal DMSenior Software EngineerCommented:

You can create any file name with ".sql" then in that file have your create table script then, execute the sql in mysql command prompt.. that it
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.