Ask Your Question
0

Is it possible to change a primary key to be auto_increment in an existing table? [closed]

asked 2019-07-22 08:20:35 +0200

bwucie gravatar image

Embedded Firebird Db, LO Base 6.2 running on Ubuntu 18.04

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by bwucie
close date 2019-07-22 12:26:49.655971

2 Answers

Sort by » oldest newest most voted
0

answered 2019-07-22 12:25:36 +0200

bwucie gravatar image

I find that does not work in Firebird: at least not in my case. I have actually managed to straighten myself by using a backup from before I broke things, and doing a lot of copy and paste after that. (Had to straighten it out: it's my wife's data, and one must stay onside OR ELSE THERE WILL BE CONSEQUENCES!)

edit flag offensive delete link more
0

answered 2019-07-22 10:13:44 +0200

ebot gravatar image

In the base overview choose "tables". Right-click on the desired table. Select Edit .... In the editable table, mark the corresponding field. Select Yes at "AutoValue". Save the table and save the DB.

image description

If my answer has solved your problem, please click on the checkmark ✓ in the circle image description to the left of the answer and click on the arrow ^ for upvote. This will tell the community that the question has been answered correctly.

edit flag offensive delete link more

Comments

With me Windows 10 Home; Version 1903; 64-Bit | LibreOffice, Version: 6.2.5.2 (x64).

ebot gravatar imageebot ( 2019-07-22 10:14:04 +0200 )edit

Question Tools

1 follower

Stats

Asked: 2019-07-22 08:20:35 +0200

Seen: 43 times

Last updated: Jul 22