<div class="gmail_quote">On Thu, Jul 25, 2013 at 6:37 AM, mane moshref <span dir="ltr"><<a href="mailto:many_yammy@yahoo.com" target="_blank">many_yammy@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><div><snip></div>It works perfectly but my problem is that I need also to have a unique id for each line in the created table. How can I include the column of line ids to this table?<div>

<snip><br></div></div></div></blockquote><div><br>Is there any reason you couldn't do an ALTER TABLE to add it after the table has been created like so?<br><br>ALTER TABLE many_line<br>ADD COLUMN many_line_id SERIAL PRIMARY KEY;<br>

<br>That would probably be the simplest solution, if you can afford the two-commit process. <br></div></div>