Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I always thought that update with a join was a bit strange. Maybe you can rewrite this as a subselect.
    • update foo set col = bar.col where bar = bar.id

      you are't updating "bar" so why would you type "update foo, *bar*"? from comparisons with "select" it's a little odd that postgresql doesn't allow you to specify the table name of the table to be updated (the bare "col" and "bar" in my example).

      in your second command, you have three tables: task, command, and t (a second copy of task). you haven't specified how task and t are related.