Recent

Author Topic: [SOLVED] SQLite Unique  (Read 668 times)

Pe3s

  • Hero Member
  • *****
  • Posts: 533
[SOLVED] SQLite Unique
« on: May 31, 2023, 05:54:38 pm »
Hello to all forum users, I have a question, if we set a unique key to a field, e.g. a number, is it possible to display your error message here instead of the message from the sqlite library?
« Last Edit: June 01, 2023, 09:00:56 am by Pe3s »

paweld

  • Hero Member
  • *****
  • Posts: 966
Re: SQLite Unique
« Reply #1 on: May 31, 2023, 11:02:27 pm »
You can check the existence of a duplicate as here: https://forum.lazarus.freepascal.org/index.php/topic,63527.msg481240.html#msg481240   

Best regards / Pozdrawiam
paweld

Pe3s

  • Hero Member
  • *****
  • Posts: 533
Re: SQLite Unique
« Reply #2 on: June 01, 2023, 09:00:12 am »
@paweld, Thank you  :)

 

TinyPortal © 2005-2018