Solved

PostgreSQL Varchar datatype?

Posted on 2007-04-09
4
6,667 Views
Last Modified: 2008-01-09
Hey!

Just started using PostgreSQL, use to MS SQL Server. Noticed Postgre does not have a varchar table datatype.

Tried using a character[] thinking a varchar is simply a character array, though when trying to execute an insert or update on the table it's asking for {} brackets...

Please comment in detail!

Thanks :)
0
Comment
Question by:undyshelts
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 18876270
It might be a better idea to post this in the PostGres or Miscellaneous section, as I doubt the average SQL Server programmer will know this stuff.  Have you tried searching the PostGres site?  http://www.postgresql.org/
0
 
LVL 61

Accepted Solution

by:
gheist earned 50 total points
ID: 18876330
http://www.postgresql.org/docs/8.2/interactive/datatype-character.html

Do you have problems with disk space that you want to use unaligned varchar sacrificing speed?
0
 
LVL 1

Author Comment

by:undyshelts
ID: 18879502
Gheist, thanks for sparking my memory!

I think you might have been over complicating the question, I was looking for the equivilant to varchar in PostgreSQL, which I have discovered is Character Varying.
0
 
LVL 61

Expert Comment

by:gheist
ID: 18881747
Whic in turn can be abberviated as "varchar"
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

760 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

26 Experts available now in Live!

Get 1:1 Help Now