Solved

How can i default all characters in PostgreSQl to CAPITAL

Posted on 2016-08-23
1
65 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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