Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering phpMyAdmin 3.4 for Effective MySQL Management

You're reading from   Mastering phpMyAdmin 3.4 for Effective MySQL Management A complete guide to getting started with phpMyAdmin 3.4 and mastering its features book and ebook

Arrow left icon
Product type Paperback
Published in Feb 2012
Publisher Packt
ISBN-13 9781849517782
Length 394 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (27) Chapters Close

Mastering phpMyAdmin 3.4 for Effective MySQL Management
Credits
About the Author
About the Reviewers
www.PacktPub.com
1. Preface
1. Getting Started with phpMyAdmin FREE CHAPTER 2. Configuring Authentication and Security 3. Over Viewing the Interface 4. Creating and Browsing Tables 5. Changing Data and Structure 6. Exporting Structure and Data (Backup) 7. Importing Structure and Data 8. Searching Data 9. Performing Table and Database Operations 10. Benefiting from the Relational System 11. Entering SQL Statements 12. Generating Multi-table Queries 13. Synchronizing Data and Supporting Replication 14. Using Query Bookmarks 15. Documenting the System 16. Transforming Data using MIME 17. Supporting Features Added in MySQL 5 18. Tracking Changes 19. Administrating the MySQL Server Troubleshooting and Support Index

Multi-statement queries


In PHP and MySQL programming, we can send only one query at a time using the mysql_query() function call. phpMyAdmin allows us to send many queries in one transmission, using a semicolon as a separator. Suppose we type the following query in the query box:

INSERT INTO author VALUES (100,'Paul Smith','111-2222');
INSERT INTO author VALUES (101,'Melanie Smith','222-3333');
UPDATE author SET phone='444-5555' WHERE name LIKE '%Smith%';

We will receive the following results screen:

We see the number of affected rows through comments because $cfg['VerboseMultiSubmit'] is set to TRUE.

Let us send the same list of queries again and watch the results:

It is normal to receive a Duplicate entry error message that says the value 100 exists already. We are seeing the results of the first INSERT statement; but what happens to the next one? Execution stops at the first error because $cfg['IgnoreMultiSubmitErrors'] is set to FALSE telling phpMyAdmin not to ignore errors in multiple...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image