Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the column flag "G" in MySQL Workbench mean

See the image below, but as part of the table editor, there's column flags such as PK (primary key), NN (not null) and so on. The last one is 'G' MySQL table editor image

like image 741
Virtrel Avatar asked Dec 22 '15 10:12

Virtrel


People also ask

What is column flag?

Flags are the small icons displayed at the left side of issue rows to mark specific issue states. Structure displays the following flags: Resolved flag means that the issue is in a Done status category. Such issues are considered completed and filtered out by the Unresolved Quick Transformation.

What is B in MySQL workbench?

Appendix B Keyboard Shortcuts Modifier in the tables stands for the platform-specific modifier key. This is Command on macOS, Control on other platforms. On macOS, the Alt key is Option.

What does UQ mean in MySQL workbench?

UQ is for Unique. This can be used to enforce the column to insert only unique value for a specific column.

What does red diamond mean in MySQL workbench?

I have red diamonds as well which means the column is a Foreign Key.


1 Answers

Having looked through some of the Workbench code and the MySQL documentation, it looks like the G column is for Generated Columns.

In the source code, there's the following within the mysql_table_editor_column_page file (line 132 at the time of writing):

model->model().append_check_column(MySQLTableColumnsListBE::IsGenerated, "G", EDITABLE);

Other code in the same area gives the layout consistent with what you're seeing in the visual for PK, NN etc., which is viewable in the source.

like image 112
gabe3886 Avatar answered Sep 30 '22 22:09

gabe3886