5

Is there a way in a derby database to add a column after another just like mysql does?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Florian Müller
  • 7,448
  • 25
  • 78
  • 120
  • 1
    I wish they would add this too. I like the schema to look exactly the same whether it's brand new or migrated. – Hakanai Jun 03 '12 at 22:45

1 Answers1

2

I don't believe so. Column ordering isn't really a standard SQL feature. Well-written db applications shouldn't care about column ordering. You can specify the order of the columns in your output by naming the columns in your SQL statement as in:

create table t (a int, b int, c int );

select b, c, a from t;

Bryan Pendleton
  • 16,128
  • 3
  • 32
  • 56