Search
 
SCRIPT & CODE EXAMPLE
 

SQL

Pl/Sql table based record

DECLARE 
   customer_rec customers%rowtype; 
BEGIN 
   SELECT * into customer_rec 
   FROM customers 
   WHERE id = 5;  
   dbms_output.put_line('Customer ID: ' || customer_rec.id); 
   dbms_output.put_line('Customer Name: ' || customer_rec.name); 
   dbms_output.put_line('Customer Address: ' || customer_rec.address); 
   dbms_output.put_line('Customer Salary: ' || customer_rec.salary); 
END; 
/
Comment

PREVIOUS NEXT
Code Example
Sql :: update sql 
Sql :: select all columns except one sql 
Sql :: what is between keyword used for 
Sql :: REMOVE DATE FROM DATE TIME SQL SERVER 
Sql :: how to put 0 or 000 depending IDCustomer length in sql server 
Sql :: mariadb cast null to 0 
Sql :: Oracle cx_Oracle example 
Sql :: open cursors in oracle 
Sql :: mysql select first 10 entries 
Sql :: how to install mssql on mac 
Sql :: sql to excel pgadmin 
Sql :: how to switch database in psql 
Sql :: default username and password for oracle 11g 
Sql :: how to create local postgres database 
Sql :: read sql file in python pandas 
Sql :: find the names of sailors who have reserved at least one boat 
Sql :: t sql return on letters only 
Sql :: add column sql 
Sql :: can i use alias in where clause 
Sql :: mysql workbench primary key 
Sql :: like in sql 
Sql :: sql double quotes in string 
Sql :: mod in sql 
Sql :: mysql view 
Sql :: oracle exchange subpartition 
Sql :: mssql xml 
Sql :: sql commands in android 
Sql :: cube oracle 
Sql :: Oracle Function execution 
Sql :: postgresql between month 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =