How to create a table which is included this by MySQL command without using Manual input, see the pic blow:
Asked
Active
Viewed 38 times
-1
-
1try this: `ALTER TABLE table_name ADD is_published BOOLEAN DEFAULT true;` – cagri Dec 28 '20 at 10:34
-
1I have no idea what this question is about please try to clarify. – P.Salmon Dec 28 '20 at 10:40
-
Despite that this question needs more clarification, but if you are using `phpmyadmin`, you can always `show the SQL` that being used. – Hamza Abdaoui Dec 28 '20 at 10:57
2 Answers
1
Based on the accepted answer, it seems you want the SQL commands that are run by the graphical interface. In the future, you can use phpMyAdmin to show you those queries directly.
When you're on that page to create a new table (or edit an existing table), there's a "Preview SQL" button next to "Save". Clicking that shows the SQL commands that will run, but won't actually run them.

Isaac Bennetch
- 11,830
- 2
- 32
- 43
0
You can use this SQL to create a table name as: published
CREATE TABLE published (
`is_published` BOOLEAN NOT NULL DEFAULT true
) ENGINE=InnoDB;

VishnuPrasad
- 1,078
- 5
- 17
- 36