Handy Library Manager
 for Windows


.. > Library backup, restore, maintenance. > How to Organize, Execute SQL statements?


Organize and Execute SQL Statements (New in Version 4.0)

You can now prepare and execute SQL statements using Handy Library Manager, which operates on the Firebird SQL database system. However, please exercise caution when running SQL statements, as it is easy to unintentionally modify or delete all records in your library databases.

Do not use any commands that alter the structure of the database, such as adding or deleting fields, renaming fields, or creating or deleting tables.

Before executing any SQL statement, ensure that you create a backup file.

The "Run SQL Statement" function supports the following features:
- Prepare SQL statements and execute them.
- Define SQL statements and save them for future use.
- Select an SQL statement from a list and execute it.

run sql command, how to access

Run SQL Statement, examples:
grade, update student grades
author, change format
call, use 3 letters from the last name


synchronize loans in library database

UPDATE LIBRARY SET TYPE = REPLACE(TYPE,'Books','Book');
UPDATE LIBRARY SET TYPE = REPLACE(TYPE,'Paper Book','Book');
UPDATE LIBRARY SET TYPE = REPLACE(TYPE,'cds','CD');
UPDATE LIBRARY SET TYPE = REPLACE(TYPE,'dvds','DVD');

Rules:

  • You can execute one or more SQL statements
  • Llist one SQL statement per line
  • At the end of the line, include the Semicolon symbol ";"
  • Before you run any SQL statement, create a backup file

Example:
In this sample, four sql statements are executed. They will change error entries in the TYPE data field:

  • 1st SQL statement will replace "Books" with "Book"
  • 2nd SQL statement will replace "Paper Book" with "Book"
  • 3rd SQL statement will replace "cds" with "CD"
  • 4th SQL statement will replace "dvds" with "DVD"



Question: I use the Grade field so that I can print out their barcodes by grade level. Then I can scan the barcode when each grade level comes to library. This is the first time I've had to change their grade level since using the program. I just couldn't remember what I did in previous years to advance them to the next grade. I will do it manually.

Answer:
You can send your library backup file to us. We will review the data field in which you store a student's grade level and reply with the SQL statement. Additionally, you can check how to update student grades.


Copyright © 2025 · All Rights Reserved · PrimaSoft PC