Skip to content
Oracle Home

Oracle Home

For Everything Oracle and more

Menu

  • Home
  • Articles
  • About Me
  • Computer Book Reviews
  • New Computer Books

Oracle Functions

You are here: Oracle Home > Oracle Functions > Page 2

How to use DBMS_UTILITY to analyse a schema

Oracle’s dbms_utility package contains a lot of neat functionality for the database developer. Today we?re going to look at the analyze_schema procedure. The analyze_schema procedure can be used to generate statistics for Oracle’s cost-based optimizer. The parameters are: Procedure analyze_schema

orahome 19/09/2018 Oracle Functions No Comments Read more

How to count number of characters in a string

CREATE OR REPLACE FUNCTION count_char ( p_data VARCHAR2 ,p_char VARCHAR2 DEFAULT ‘ ‘ ) RETURN VARCHAR2 IS v_loc NUMBER := 0; v_count NUMBER := 0; v_new_str VARCHAR2(32000); j binary_integer default 1; — BEGIN FOR i IN 1 .. LENGTH (p_data)

orahome 19/09/2018 Oracle Functions No Comments Read more

How to count the number of occurences in a string

/* This function will return the number of occurences that p_sub_string appears in p_string Unlike instr that only counts the position of a sub-string in a string. */ CREATE OR REPLACE FUNCTION occurs (p_string IN VARCHAR2, p_sub_string IN VARCHAR2) RETURN

orahome 19/09/2018 Oracle Functions No Comments Read more

How to check for numbers in a varchar column

If you have a table with a VARCHAR2 column in it, that means it may contain any number of values, i.e. numbers or characters, if you want to check that the column only has numbers or you only want to

orahome 19/09/2018 Oracle Functions No Comments Read more

How to transpose rows to columns in Oracle

The objective of this function is to transpose rows to columns. This RowToCol function is built with invoker-rights AUTHID CURRENT_USER. The function works on tables/views of the user who invokes the function, not on the owner of this function. RowToCol

orahome 19/09/2018 Oracle Functions No Comments Read more

How to convert a comma string to an insert string

This function will split an input string separated by commas into a string enclosed with single quotes. This is helful in applying conditions in dynamic SQL. dyn_string1 Function: create or replace function dyn_string1(ab varchar2)return varchar2 as t varchar2(2):=’,’; t1 varchar2(2):=””;

orahome 19/09/2018 Oracle Functions No Comments Read more
  • Next »

Recent Posts

  • SQL Server OUTPUT Command
  • Direct Joins for UPDATE and DELETE in Oracle 23ai Database
  • GROUP BY Column Alias or Position in Oracle 23ai
  • SELECT without FROM DUAL in Oracle 23ai Database
  • IF EXISTS and IF NOT EXISTS in SQL in Oracle 23ai Database

Categories

  • Access Functions
  • Affiliate Marketing
  • Articles
  • Book Reviews
    • MySQL Book Reviews
    • Oracle Book Reviews
    • Other Book Reviews
    • PHP Book Reviews
    • Web Marketing Book Reviews
  • Computer Book Releases
  • Computer Magazines
  • Computer Products
  • CSS Tips
  • Excel Functions
  • Javascript Code
  • Microsoft Access
  • MySQL Code
  • Oracle 23ai
  • Oracle Built-in SQL Functions
  • Oracle DBA
  • Oracle Error Codes
    • EXP Error Codes
    • IMP Error Codes
    • ORA Error Codes
    • PLS Error Codes
  • Oracle Forms
  • Oracle Functions
  • Oracle Procedures
  • Oracle SQL
  • PHP Code
  • SEO Tips
  • SQL Server
  • Unix Code
  • Video Editing
  • Web Hosting

Archives

  • March 2025
  • July 2024
  • March 2024
  • July 2021
  • March 2021
  • November 2020
  • August 2020
  • June 2020
  • May 2020
  • March 2020
  • March 2019
  • September 2018

Tag Cloud

059652708X 0596100892 0596101058 0596528000 book review case insensitive search oracle case insensitive search sql center data column sql centre data column sql compare strings oracle compare strings sql convert floating point numbers create varrays sql deleted oracle datafile difference between two dates drop all empty tables drop column from table oracle drop column in table drop column table sql employee service time sql limit objects created by user mysql stored procedure programming network windows xp to windows vista number types sql ora-01722 oracle 11g new features oracle 23ai oracle datafile oracle pl/sql programming oracle rename column table remove leading zeros remove zeros from string sql rename table column sql select last saturday in every month select random number set oracle select random numbers sql sql difference between dates sql time between dates start windows oracle website accessibility website screen readers windows oracle service windows vista windows vista the definitive guide windows xp

Amazon Offers

Categories

  • Oracle SQL
  • Unix Code
  • MySQL Code
  • Oracle Functions
  • PHP Code
  • Oracle DBA
  • Oracle Procedures
  • Oracle Forms
  • Oracle 23ai
  • ORA Error Codes
  • Computer Magazines

Pages

  • ASCII Table Lookup
  • Computer Book Reviews
  • New Computer Books
  • Oracle Database 10g
  • Oracle Employers
  • Oracle Forms
  • Oracle Jobsites
  • Oracle Reports
  • Oracle White Papers
  • Top 10 Javascript Books
  • Top 10 MySQL Computer Books
  • Top 10 Oracle Computer Books
  • Top 10 PHP Computer Books
  • Top 10 Raspberry Pi Books
  • Top 10 SEO and Internet Marketing Books
  • Unix Commands Cheat Sheet
Copyright © 2025 Oracle Home. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.
  • Sitemap
  • Contact us
  • Privacy Policy