The US State Code generator creates the official two-letter abbreviations for U.S. states and territories, as defined by the ISO 3166-2 standard (e.g., CA for California, TX for Texas, NY for New York). These codes are widely used for addressing, identification, and regional categorization in different systems.
The table provides key details about the generator, including the short name, sample of the generated data, the supported data types, and whether it is specific to a particular country.
Short name | Example of generated data | Data type matching | Country-specific |
---|---|---|---|
US State Code | NY, IN, OH, … | character character varying text |
Default |
The generator can be assigned to a column that matches any of the following rules:
The generator produces data based on a regular expression. Since it is built on the RegExp generator, see Regular Expression generator to customize settings and understand the correct usage of syntax.
The Text box displays a .csv file that contain a list of state codes. The default path to the file is C:\Users\Public\Documents\Devart\dbForge Studio for PostgreSQL\Data Generators\USStateCodes.csv[0]
.