If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Postgresql Function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-12, 03:39
desktoppc desktoppc is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Postgresql Function

hi
i want to create a function in postgresql that take input for columns from user for example first_name , last_name, addres. and will put them into table , and i also want to use exception if user enters wrong data. will some one help me how can i create thats function , because i am new to postgresql . i know how to do it in MS-SQL , i also have that code .if you dont understand what am trying to say . i can post sql code .thanks
Reply With Quote
  #2 (permalink)  
Old 01-20-12, 12:03
futurity futurity is offline
Registered User
 
Join Date: May 2008
Posts: 270
Why do you need a stored procedure to do this? A plain INSERT will accomplish everything you want just fine.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On