mysql
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| mysql [2011/08/03 16:01] – admin | mysql [2013/06/05 09:01] (aktuell) – admin | ||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| [[http:// | [[http:// | ||
| + | [[MySQL - ACCESS]] \\ | ||
| + | [[ACCESS - MySQL]] \\ | ||
| [[http:// | [[http:// | ||
| [[http:// | [[http:// | ||
| Zeile 123: | Zeile 125: | ||
| | Show all records starting with the letters ' | | Show all records starting with the letters ' | ||
| | | | | | | | | ||
| - | | Use a regular expression to find records. Use " | + | | Use a regular expression to find records. Use " |
| | | | | | | | | ||
| | Show unique records. | SELECT DISTINCT [column name] FROM [table name]; | | | Show unique records. | SELECT DISTINCT [column name] FROM [table name]; | | ||
| Zeile 129: | Zeile 131: | ||
| | Count rows. | SELECT COUNT(*) FROM [table name]; | | Count rows. | SELECT COUNT(*) FROM [table name]; | ||
| | | | | | | | | ||
| - | | Join tables on common columns. | select lookup.illustrationid, | + | | Join tables on common columns. | select lookup.illustrationid, |
| - | left join person on lookup.personid=person.personid=statement to join birthday in person table with primary illustration id; | | + | | | left join person on lookup.personid=person.personid=statement to join birthday in person table with primary illustration id; | |
| | Switch to the mysql db. Create a new user. | INSERT INTO [table name] (Host, | | Switch to the mysql db. Create a new user. | INSERT INTO [table name] (Host, | ||
| | Change a users password.(from unix shell). | [mysql dir]/ | | Change a users password.(from unix shell). | [mysql dir]/ | ||
| Zeile 149: | Zeile 151: | ||
| | Dump a table from a database. | [mysql dir]/ | | Dump a table from a database. | [mysql dir]/ | ||
| | Restore database (or database table) from backup. | [mysql dir]/ | | Restore database (or database table) from backup. | [mysql dir]/ | ||
| - | | Create Table Example 1. | CREATE TABLE [table name] (firstname VARCHAR(20), | + | | Create Table Example 1. | CREATE TABLE [table name] (firstname VARCHAR(20), |
| - | officeid VARCHAR(10), | + | |
| - | VARCHAR(15), | + | |
| | Create Table Example 2. | create table [table name] (personid int(50) not null auto_increment primary key, | | Create Table Example 2. | create table [table name] (personid int(50) not null auto_increment primary key, | ||
| + | |||
| + | ===== Binary Log Files ===== | ||
| + | <file / | ||
| + | ... | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | mysql -u root -p ' | ||
| + | |||
| + | mysql -u root -p ' | ||
| + | |||
mysql.1312380100.txt.gz · Zuletzt geändert: von admin
