Commands related search data are essential for any programming activity, because this command SELECT is so used, regardless of language.

With the popularization of Firebird realize that there is a necessity to learn the various commands that involve the management of the bank and therefore the following, we show how the command SELECT is used in it.

Firebird SELECT syntax is very simple and familiar, check below:

SELECT [Fields] FROM [Table]

As a practical example we will see all the products and display all fields in a table of products.

SELECT * FROM products

Note that as in other DBMS, the character (*) is used to return all data, thereby facilitating the coding.

If you need some kind of filter you can still count on the conditional WHERE it will show only the results(s) satisfying that specific condition.

SELECT Cod_prod, Name FROM product WHERE Cod_prod= 1

In the example above only the product that has the code 1 will be shown in the query.

firebird-database

The Firebird has been shown more efficient in development environments, find it very common on projects of all sizes, so learn more about its operation is essential. Learn more about the advantages of Firebird with PHP, one of the programming languages ​​WEB today’s popular on our official site.

You might also like…

AJAX: What it is and how to use it in Scriptcase

Hello, in this post we will conceptually understand the AJAX event and how use  inside the Scriptca...

What advantages for a company in adopting a low-code tool?

Let's understand how low-code tools have become a facilitator in the web development process as they...

How to implement A2F using Swivel in a Scriptcase application

I want to start talking about Swivel, Swivel is a provider of authentication solutions who have been...

Comment this post

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at sales@scriptcase.net. Learn more about our Privacy Police.