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:

CREATE TABLE recipes;

Then name the file.

create_tables.sql
lg5050Asked:
Who is Participating?
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 Developer, Architect, and AuthorCommented:
Are you asking us to create a recipe table, which essentially means are you asking us to do your homework for you?
0
lg5050Author Commented:
no i want to know do i just create a table called recipe then give the file a name.
0
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:

SQL Server CREATE TABLE: https://msdn.microsoft.com/en-us/library/ms174979.aspx
MySQL CREATE TABLE: http://dev.mysql.com/doc/refman/5.1/en/create-table.html

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.
0

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
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
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
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
So ... how's it going?
0
lg5050Author Commented:
Thanks for you help!!
0
Vimal DMSenior Software EngineerCommented:
Hi,

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
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.