Layer7 API Management

  • 1.  Update Record in MySql Database Table(no primary key) from LAC?

    Posted May 04, 2018 09:23 AM

    We are using a MySQL database and are trying to update a table with no primary key ( with PUT, POST) for particular columns using a condition in 'sys filter' in CA LIVE API Creator. However, it is not getting updated, showing an error stating " you cannot insert, update, or delete in table main: tableName because it has no primary key.

     

    Kindly suggest, is it not possible to update a table without a primary key?



  • 2.  Re: Update Record in MySql Database Table(no primary key) from LAC?
    Best Answer

    Posted May 08, 2018 01:36 AM

    Found the answer in the document. Writing the solution below for others,

     

    It can be done by adding virtual primary keys to your views or table in LAC.

    #virtualprimarykeys

    Manage Views - CA Live API Creator - 4.0 - CA Technologies Documentation 

     

    Thanks!!