Home >Database >Mysql Tutorial >10 recommended articles for information about tables
MySQL Metadata You may want to know the following three types of information about MySQL: Query result information: The number of records affected by the SELECT, UPDATE or DELETE statement. Database and data table information: Contains structural information of the database and data table. MySQL server information: Contains the current status, version number, etc. of the database server. In the MySQL command prompt, we can easily obtain the above server information. But if you use a scripting language such as Perl or PHP, you need to call a specific interface function to obtain it. We will introduce it in detail next. Get the number of records affected by the query statement. PERL instance In the DBI script, the number of records affected by the statement is returned through the function do() or execute(): # Method 1 # Use do() to execute $query my $count = $dbh->do&nbs
1. What is MySQL metadata? Introduction to metadata and example code
# Introduction: MySQL metadata You may want to know the following three types of MySQL Information: Query result information: Number of records affected by SELECT, UPDATE or DELETE statements. Database and data table information: Contains structural information of the database and data table. ...
2. php mysql three methods to obtain table field names and field information
Introduction: Three methods for php mysql to obtain table field names and field information. First, the information of the table used in this example is given: Use desc to obtain table field information. The php code is as follows:
3. MySQL Getting Started Tutorial 6 - Obtaining Database and Table Information
##4.
mysql Get database and table information##Introduction: What if you forget the name of your database or table, or what the structure of a given table is (for example, what its columns are called)? Solve this problem with a few statements that provide information about the database and its supporting tables. You have seen SHOW DATABASES, which lists the databases managed by the server. MySQL correlation query problem?
Introduction: There are currently three tables: A B C The relationship between A and B, A.uid = B.id The relationship between B and C, B.uid = C.id Now when I want to directly query table A through a MySQL statement, I can find out the information of table C through table B, such as left join, etc., please give me a demonstration sql statement... .
#6. php+mysql object-oriented simple query table information
Introduction: php+mysql object-oriented Simple query table information
7. Come in and help, database query related issues
Introduction: Dear experts Let's come in and help. The database query problem has a table that stores customer information. We have set a specific order for these places. According to these orders, the information in this table is listed, such as: Xiao Li Shanghai Xiao Zhang Shaanxi Xi'an Xiao Yang Wuhan Hongshan District Xiaohuang Beijing
8. How to use php to export the queried files into excel table format Introduction: How to use php to export the queried files How about exporting the file into an excel table? If you use the database language to export, it can only be the information of the entire table, and there is no header. How can you print out the header? ------Solution------------- -------
Set the content to a standard
The above is the detailed content of 10 recommended articles for information about tables. For more information, please follow other related articles on the PHP Chinese website!