This syntax differs slightly from standard SQL comment syntax, as discussed in Section 1.8.2.4, ''-' as the Start of a Comment'. In MySQL, the - (double-dash) comment style requires the second dash to be followed by at least one whitespace or control character (such as a space, tab, newline, and so on). I have good news, you can easily extract schema and share in convenient, searchable HTML documentation in minutes with Dataedo. From a - sequence to the end of the line. Make sure you didn't make any other unwanted changes as any change to the schema will also be applied to the database.īonus: Share database schema with comments in HTMLĮxploring schema of MySQL database and reading comments in is not most convenient with MySQL Workbench. Make sure to save changes with the Apply button. To change column comment you need to first select a column from the grid in the middle of the form (it's attributes will appear at the bottom of the form) and you will be able to edit commetns in the Comments field (green rectangle). You can edit table description in Comments field on the top (blue rectangle). It will open a new tab in the main pane (right-hand side of the screen) with the editor. Select table, click right mouse button and choose Alter table. Comments and Portability One of the cleverest MySQL extensions to the SQL standard is actually a way to manage portability. To edit comments in the specific table, you need to enter into edit mode. If in the last step you didn't see any comments it's probably because there were none entered. To view comments for columns go to Columns tab, and comments will be visible in the last column in the grid. It will open a new tab in main pane (right-hand side of the screen).Ĭomment assigned to your table will be visible at the bottom of the first tab called Info, along with other table metadata. To view comments for a specific table, click right mouse button and choose Table Inspector option. I assume you are already connected to your database and schema and found a list of tables (lower left side of the screen below). Let's start with finding existing comments. In this tutorial, I would like to show you how to view and edit table and column comments with MySQL Workbench - a free MySQL development and management tool from Oracle. If used, this is useful for understanding database schema and meaning of data elements. MySQL, like most databases, allows you to add comments to each table and column.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |