0

Dear all, Using sequence we can insert a sequence of integers in postgers
like that I just want to insert A1 and A2 , Is this possible to do this in a straight forward manner , or otherwise do need to write a function ?

Please let me know the easiest way of doing this Thanks in advance !

1
  • PostgreSQL version? Sample schema? Anything? Commented Oct 29, 2010 at 13:02

1 Answer 1

1
  • create table test ( a text );
CREATE TABLE
  • insert into test(a) select 'A'||generate_series(1,4)::text;
INSERT 0 4
  • select * from test;
 a  
----
 A1
 A2
 A3
 A4
(4 rows)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.