tobenschain 0 Posted January 12, 2023 using FireDAC i am creating a table at runtime with a primary key. how do i make the key permanent ? Share this post Link to post
Lajos Juhász 293 Posted January 12, 2023 You can simply achieve that by changing that option and then recompile your source. Seriously you believe we can see your monitor and to read what you're doing?! You should give enough information. We don't know which database you're using and what you're doing. In SQL there is no concept of temporary primary key. You have only two options when you create a database table. The table has a key or it doesn’t (you can also create a primary key and later drop it). Share this post Link to post
tobenschain 0 Posted January 12, 2023 thanks i was calling CreateTable before defining index Share this post Link to post
Lajos Juhász 293 Posted January 12, 2023 You have to define the primary key in create table statement. Index on query component will not add a PK on database. Share this post Link to post