MySQL Importing and creating a database. CSV (Comma Separated Values) file CSV = Comma Separated Values – they are simple text files containing data which.

Slides:



Advertisements
Similar presentations
Microsoft Access.
Advertisements

Tutorial 1 Creating a Database
CC SQL Utilities.
How to Import Names into GradeCam By Monica Dixon.
Creating a County ArcMap with Fiscal Year Conservation Practice Locations David Hoover ASTC, Idaho 2007 DC Meeting.
Alternative FILE formats
Outlook Contacts Export Guideline Powered by DonorCommunity TM DonorCommunity eLearning Series v1.2, September 2012 Outlook Contacts Export Guideline Outlook.
A Visual Follow-Along Guide to the Instructions of the NBTA Modular Hotel RFP.
Quick-and-dirty.  Commands end in a semi-colon ◦ If you forget, another prompt line shows up  Either continue the command or…  End it with a semi-colon.
Access Tutorial 1 Creating a Database
Designing a Database Unleashing the Power of Relational Database Design.
Chapter 7 Data Management. Agenda Database concept Import data Input and edit data Sort data Function Filter data Create range name Calculate subtotal.
Overview Importing text files Creating Forms Creating Reports.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Add a File with X, Y coordinates to MapWindow
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
1 Access Lesson 6 Integrating Access Microsoft Office 2010 Introductory Pasewark & Pasewark.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
FIRST COURSE Access Tutorial 1 Creating a Database.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
1 Lesson 22 Getting Started with Access Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Importing existing reference lists Lorraine Beard & Martin Snelling DRAFT: May 2007.
Databases. Database A database is an organized collection of related data.
® Microsoft Access 2010 Tutorial 1 Creating a Database.
1 Working with MS SQL Server Textbook Chapter 14.
Lesson 17 Getting Started with Access Essentials
TIMES 3 Technological Integrations in Mathematical Environments and Studies Jacksonville State University 2010.
Key Applications Module Lesson 21 — Access Essentials
Chapter 17 Creating a Database.
10.11 Data Manipulation 1. Getting External Data.
Access Manual 2 By Dhawala Kovuri Elham S.Khorasani Ismail Guneydas.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 23 Getting Started with Access Essentials 1 Morrison / Wells / Ruffolo.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T6: Basic Skills and Tools Using Access 2010 Business Driven Technology.
® Microsoft Office 2013 Access Creating a Database.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
How do I export the Address Book to Excel? The first step is to go to "Address Book Report" under Admin Only menu Choose the fields you want. note that.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Planning & Creating a Database By Ms. Naira Microsoft Access.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
A table is a set of data elements (values) that is organized using a model of vertical columns (which are identified by their name) and horizontal rows.
TAILS Phase 5 TAILSTAILS racking ntegrated ogging ystem nd 1 TAILS Introduction to Reporting.
More Oracle SQL Scripts. Highlight (but don’t open) authors table, got o External data Excel, and make an external spreadsheet with the data.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Database Essentials Lesson 1. Software Orientation.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 8-1 LINKS TO OBJECTIVES Import data from another Access table Import data from another Access table.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 8 BACKNEXTEND 8-1 LINKS TO OBJECTIVES Import data from Access, a Web site, or a CSV text file.
Percy K. Parakh Technology Training Coordinator – CDE ChSCC.
Tutorial 1 Creating a Database
How to create links from an Alma Analytics report to Primo
Creates the file on disk and opens it for writing
Access Tutorial 1 Creating a Database
Introduction to Web programming
Database application MySQL Database and PhpMyAdmin
Access Creating a Database
Access Lesson 14 Import and Export Data
Access Creating a Database
MySQL and MyPHPAdmin.
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Access Tutorial 1 Creating a Database
Creates the file on disk and opens it for writing
Click ‘browse’ to search your device for
Access Tutorial 1 Creating a Database
Lesson 23 Getting Started with Access Essentials
Access Tutorial 1 Creating a Database
What is a spreadsheet? A program that can carry out calculations
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

MySQL Importing and creating a database

CSV (Comma Separated Values) file CSV = Comma Separated Values – they are simple text files containing data which can be imported into a database or spreadsheet A CSV can be created using a spreadsheet in Excel (Save as CSV) In the CSV file, the data is delimited by a comma. Delimiters separate the data. Other types of delimiters include a semi-colon or tab Spreadsheet (Excel) CSV file (opened in Notepad)

MySQL Import Functioon CSV files can be imported into a database, spreadsheet, etc. (Excel files may also be imported, but CSV files are simpler and more universal) Create spreadsheet Save as CSV file Import using PHPMyAdmin

Step 1 - Create CSV File Create the table containing the data: 1.Copy a table with data from any web page (e.g. flight info) 2.Paste into Excel or spreadsheet (paste without formatting) 3.Make sure the table has a row of column headers, e.g. departing from, airline, flight no., etc. 4.Save as a CSV file

Step 2- Import CSV File to PHPMyAdmin Exercise (continued) 5.Open PHPMyAdmin on screen, open/create a database file 6.Click Import 7.Select the CSV file 8.Make sure “Use header” is selected (see below) so the first row of the table does not get accepted as part of the data. (it will use this as field names instead) 9.When the CSV file imports, a table is created with a default name, e.g. table 3

Step 3 – Rename the Table Continued … Select and rename the table (use Operations tab): Table renamed, e.g. flight_departures

Step 4 – Add Primary Key Continued … To change and edit the structure of the table, it needs a unique column identifier (primary key) Open the table structure. Add a column at the beginning of the table Use a name such as id, with type INT (length 3 digits), primary and A_I for auto increment Save

Step 5 - continued Each record now has a unique field (id) to identify it The PRIMARY KEY uniquely identifies each record in a database table. A primary key column cannot contain NULL values. Each table should have a primary key, and each table can have only ONE primary key. In this example the primary key is called id

Step 6 (final) – Edit Structure You can then edit the structure and field names and data type (int for id, var char for basic information, and time for flight times Here is some example data inside the table

Summary Data can be created in a different format and imported into MySQL MySQL is a fast database system enabling interaction with web pages. Further exercises (if time) A database can be exported to a file, then it becomes portable. You could use the file to transfer the database to a different PHPMyAdmin The exported database can be re-imported on a different computer. 1.Export the database in CSV format and save to a folder. 2.Import CSV file in Excel.