BrockN.com
The Official Blog of Brock
  • Domains
  • Hosting
  • Informatica
  • Oracle
  • PHP
  • SQL Server
  • Websites
  • Oracle
Browse: Home / RETURN

RETURN

How to Create a Function in Oracle with Examples

By admin on December 14, 2011

The following function will add a new column called SOME_NEW_COLUMN with a NUMBER datatype to all tables in the current schema.  This function does not take any parameters. CREATE OR REPLACE FUNCTION ADD_COLUMN_FUNCTION RETURN INTEGER IS temp_String varchar2(200); temp_Table_Name varchar2(30); CURSOR cursor_User_Tables IS SELECT TABLE_NAME FROM USER_TABLES; BEGIN FOR rec IN cursor_User_Tables LOOP temp_Table_Name := [...]

Posted in Uncategorized | Tagged BEGIN, DECLARE, LOOP, RETURN | Leave a response

Search

$1.99/mo Web Hosting
Domains $7.49 - Why Pay More?

Copyright © 2012 BrockN.com.