简体   繁体   中英

MySQL Workbench - default datatype sizes

In MySQL Workbench, is there a way to set the default datatype sizes?

For example, whenever I select the VARCHAR datatype, it defaults to VARCHAR(45).

In most cases, I set the length to VARCHAR(255).

So, to save myself some extra effort, how would I set the default to VARCHAR(255)?

In version 5.2.47:

File > Properties > "Model" tab. In the "Column defaults" section for the "column type" field, change the value to VARCHAR(255).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM