How to update records information in the database is essential for the development of daily activities in development environments, so we will learn how to use the following UPDATE statement in Oracle database.

The syntax is very simple as shown below:

UPDATE [Table]

SET [Column] = [Value]

As a practical example, we will upgrade the country field of all records from table of products.

UPDATE product

SET country = ‘USA’

In the example all records are updated with the information passed on, but this kind of situation is not so common. The UPDATE command needs to be used carefully and one of the ways to prevent possible errors is using the conditional WHERE thus only the record that satisfies the condition is updated.

UPDATE product

SET Name = ‘Tv’

WHERE cod_prod = 1

In the above example we update the name of a product from the code that is referencing the database, this way we avoid other records are also updated with the same information.

oracle-database

The Oracle database has become increasingly common in web development environments, especially those that use PHP as default language, because of that understanding how it works is essential to any professional. Learn the advantages of Oracle with PHP on our official site by clicking the link above.

 

PHP Oracle

Oracle is one of the most respected DBMS in the world, created in the late 70s by Lary Ellison, quickly turned into one of the most used and trusted. Your security scheme and processing capacity were some of the features that gave it that title. One of the great advantages of Oracle has always been a pioneer in several features for databases, one of the firsts to think about a model for the web in the late 90s.It is very common to find the database Oracle working with PHP applications in development environments.

PHP Oracle

As it is a powerful DBMS, it is common to see projects using Oracle. Several types of applications work using it, so that it is very common to find large PHP projects that need to connect with this type of database. But depending on the tool used to develop the application, the connection may have problems. An external driver that may be used to make the connection may require development hours until it works perfectly. In addition, issues related to security of the connection (data access) also can be a problem.

Therefore it is essential to have a tool that can assist you in this aspect. With Scriptcase you can easily connect to Oracle database, all you need to inform to connect to the Oracle is:

  • Connection Name: It will help you identify the connection among the others.
  • DBMS Driver: it Will show a list with all drivers available.
  • TSNAME: Should be informed the IP of the server where the database is installed and the instance name created in the Oracle installation.
  • Port: The port that you want to use to connect to your database.
  • Username: Username for the user from the database.
  • Password: The password from the previous selected username.

PHP Oracle Connection

Once you connect Scriptcase with your database, it will read your tables and create applications based on the desired tables. Scriptcase will identify all special characteristics from your table, such as primary keys, foreign key, auto-increments, among others, and will show that at the application level. All the CRUD (Create, Read, Update and Delete) actions will be managed by the Scriptcase. On forms and reports all the navigation, searches and filters (Static or Dynamic) will be also handled by Scriptcase automatically.

Scriptcase support stored procedures and all SQL statements (joins, order by, group by, among others) of Oracle, why lose time when you have Scriptcase to help you out?! Download it now and test it free for 20 days!

Know more about the best and most efficient PHP RAD Tool of the market! Get to know Scriptcase.

You might also like…

PROCESAMIENTO AJAX EN SCRIPTCASE

Ajax en los formularios de Scriptcase puede usarse para recargar un campo de tipo de select basado e...

IMPORTAR IMAGENES DE LA BASE DE DATOS Y UTILIZAR CLASES DE BOOSTRAP

Como muchas personas ya saben, Bootstrap es una biblioteca de front-end libre y de código abierto p...

TENDENCIAS DE DESARROLLO WEB PARA 2017

Usted verá en este post tendencias para 2017 en Diseño Web, en el medio digital y en el desarrollo...

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.