24 Database Modeling Tips for Vertabelo

Tip #7 – How to include comments in SQL script

Vertabelo Team

Posted: December 7, 2015

You can comment on your database objects (tables, columns, views) in Vertabelo. You can also include this metadata in your database, where it can be accessed by your SQL developers or DBAs.

Here’s how you can do it.

Go to your database model:

Click SQL generation settings in the Model properties panel on the right:

Check the Include comments for database objects option:

Let’s try out how it works.

Assume that you want to add your comment to the photo_file column in the photo table.

Select the table. In the Table properties panel on the right, find the appropriate column, and then expand its properties section:

Write your comment in the Comment text field:

Now, you can see that your comment is added to the generated SQL script:

Let’s check your comment in the created PostgreSQL database. You can do this by using the psql command on the command line:

Your comment should also be visible in graphical environments, like pgAdmin III.


Try our online database modeler. No registration. No commitments.

Subscribe to our newsletter

If you find this article useful, join our weekly newsletter to be notified about the latest posts.

It's Time to Master Python Gain practical knowledge of Python or prepare for a coding interview. Let's Do This Other Python courses: