Indexes, Privileges, and Misc
Who this is for
For users who have finished field input and now want to complete query performance, access privileges, and table-level options.
What this solves
You can move from "table can be created" to "closer to production-ready", keeping indexes, privileges, and table-level parameters aligned with real query scenarios.
Steps
- Open "Indexes", enter field names, and select from suggestions. Result: you can quickly assemble index field combinations.
- Choose
Add Index,Add Unique Index, orAdd Primary Keybased on your goal. Result: corresponding index definitions are immediately added to DDL. - If index naming needs adjustment, edit the index name directly. Result: output SQL uses your confirmed naming.
- If you need to derive indexes from queries, click
AI Index Advisorand paste typical query SQL or slow query snippets. Result: the system recommends missing indexes, redundant indexes, field order optimizations, and query rewrites based on current fields and existing indexes. - Click
Add Indexfor recommendations that match your scenario. Result: the recommended field combination enters index configuration, and DDL on the right updates immediately. - Open "Privileges", enter grantees, and add them. Result: matching grant statements are generated automatically in "Privilege DCL".
- Open "Misc", enable the switch first, then configure engine, charset, collation, tablespace, fillfactor, or Oracle-specific storage options. Result: supported databases include these table-level options in DDL.
- If Routine skeletons are needed, select stored procedure, function, or trigger templates in Misc and adjust parameters. Result: the Routine output area generates corresponding skeleton code.
Done when
- Key query fields have indexes configured, and the primary key strategy is clear.
- If AI Index Advisor was used, recommended indexes have been reviewed against query scenarios and added to index configuration.
- Objects that need privilege grants appear in the grantee list.
- After enabling Misc settings, corresponding options are visible in DDL on the right.
Common pitfalls
- Usually only one primary key is allowed. If one already exists, do not add another.
- AI Index Advisor needs a table name, fields, and typical query SQL; complete the context before analysis when any part is missing.
- If Misc is not enabled, selected options will not be written into DDL.
- If grantee is empty, an empty DCL is normal and not a system issue.