Solved

How can i default all characters in PostgreSQl to CAPITAL

Posted on 2016-08-23
1
51 Views
Last Modified: 2016-08-26
I am trying to ensure that database contains only capital letters
Can this be specified at the database level so that even if lower case characters are
entered ,  the database stores it as capital

Or do i have to enforce this in my programs ??

A database setting would be much neater

Thanks

Oluwoole
0
Comment
Question by:Olukay
1 Comment
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 41771829
Unfortunately there is no database settings that can enforce that uppercase rule and you will have to add check constraints on each "text" holding column, triggers and trigger functions to convert/populate columns with uppercase instead of what's being sent to the database. Please do a search on google for "questions/102957/postgresql-force-upper-case-for-all-data" in order to get more details/code sample  how to achieve that.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: http://www.postgresql.org/ (http://www.postgresql.org/) This requires some add-o…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now