- USE yourschema;
describe managers; - CREATE TABLE newtablename
SELECT * FROM existingtablename - By using a WHERE clause.
- TRUNCATE TABLE tablename;
- UPDATE table1 t1
INNER JOIN table2 t2
ON t1.id = t2.id
SET t1.col1 = t2.col1 - A grouping of one or more changes to the database.
- To start a transaction in MySQL, use the START TRANSACTION or BEGIN keywords. To commit the transaction, you use the COMMIT keyword. To roll back a transaction, use the ROLLBACK keyword.
- ALTER TABLE table1
ADD COLUMN col2 datatype constraint AFTER col1; - ALTER TABLE table1
CHANGE COLUMN col1 col1 newdatatype;
ALTER TABLE table1 - CHANGE COLUMN col1 col1a datatype;
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia