Solved

How can i default all characters in PostgreSQl to CAPITAL

Posted on 2016-08-23
1
70 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

726 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