postgresql print variable 1

postgresql print variable

raise notice 'Value: %', deletedContactId;

Here is what the above code is Doing:
1. We’re creating a new contact with the name “John Doe” and the email “john@doe.com”.
2. We’re then getting the ID of the newly created contact.
3. We’re then deleting the contact with the ID we just got.
4. We’re then getting the ID of the deleted contact.
5. We’re then printing the ID of the deleted contact.

The output of the above code is:

NOTICE: Value: 1

Similar Posts