Solved

What content does .sql file consists

Posted on 2015-02-15
2
93 Views
Last Modified: 2015-02-24
Hello,

What does the .sql file consists of exactly. I got .sql file and when I open it in notepad can see table structure for tables and dumping data for that tables.

For table structure for some tables there is no dumping data so what does this mean.
0
Comment
Question by:srinivas2324
2 Comments
 
LVL 3

Expert Comment

by:Leo Alexander
ID: 40611731
The .sql file contains code to create/query a table or tables. There is no dataset/table in the file itself, aside from the instructions/code on what to do with the data.

You would need software in order to execute the script. You could use MySQL  if you do not have a SQL server installed to read the file into.
0
 
LVL 18

Accepted Solution

by:
SimonAdept earned 500 total points
ID: 40611774
>For table structure for some tables there is no dumping data so what does this mean.

When the other person created the file they chose to include structure only for those tables, or deleted the INSERT statements after creating the file.

It sounds like your .sql file is intended to create the database(s), but only provides data for configuration/lookup tables, leaving it ready for you to populate the other tables.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MySQL going to sleep 4 64
understanding output of mysql version 2 24
Problem with SqlConnection 5 117
mysql Encryption with PHP 8 51
More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now