[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How can i default all characters in PostgreSQl to CAPITAL

Posted on 2016-08-23
1
Medium Priority
?
83 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 2000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

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…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

656 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