Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 117479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:20:35+00:00 2026-05-11T03:20:35+00:00

The naïve FOO = empty_clob() complains about incompatible types. I tried Googling, but (once

  • 0

The naïve FOO = empty_clob() complains about incompatible types. I tried Googling, but (once again) had little success searching for help with Oracle. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:20:35+00:00Added an answer on May 11, 2026 at 3:20 am

    If you are trying to do the comparison in PL/SQL, you can just test equality as Igor’s solution does

    SQL> ed Wrote file afiedt.buf    1  DECLARE   2     dummy  clob;   3  BEGIN   4       dummy := empty_clob();   5        IF dummy = empty_clob() THEN   6           dbms_output.put_line( 'Dummy is empty' );   7        ELSE   8           dbms_output.put_line( 'Dummy is not empty' );   9        END IF;  10* END; SQL> / Dummy is empty  PL/SQL procedure successfully completed. 

    If you are trying to do this in SQL, thougyh, you need to use the DBMS_LOB.COMPARE function. A LOB column in a table is really a LOB locator (i.e. pointer), so what you really care about is that the value pointed to by the LOB is comparable to the value pointed to by the LOB locator returned by the EMPTY_CLOB() function.

    SQL> desc bar  Name                                      Null?    Type  ----------------------------------------- -------- ------------------------   FOO                                                CLOB  SQL> insert into bar values ('123');  1 row created.  SQL> insert into bar values( empty_clob() );  1 row created.  SQL> insert into bar values( empty_clob() );  1 row created.  SQL> ed Wrote file afiedt.buf    1  select count(*)   2    from bar   3*  where dbms_lob.compare( foo, empty_clob() ) = 0 SQL> /    COUNT(*) ----------          2  SQL> ed Wrote file afiedt.buf    1  select count(*)   2    from bar   3*  where dbms_lob.compare( foo, empty_clob() ) != 0 SQL> /    COUNT(*) ----------          1 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Java, on a text like foo <on> bar </on> thing <on> again</on> now
I tried this code: $.post('/script', function(result) { var foo = $(result).find('#foo'); $('#result').html(foo); }); Here's
My SUT looks like: foo.py bar.py tests/__init__.py [empty] tests/foo_tests.py tests/bar_tests.py tests/integration/__init__.py [empty] tests/integration/foo_tests.py tests/integration/bar_tests.py
If I make an empty test class: public class Foo { } And I
Foo* set = new Foo[100]; // ... delete [] set; You don't pass the
#foo {width: 300px; height: 400px; overflow: hidden;} <div id=foo></div> this.someimage = randomImageUrl; $(foo).innerHTML =
foo\r\nbar.replace(/(foo).+/m, bar) Hello. I can not understand why this code does not replace foo
class Foo { static bool Bar(Stream^ stream); }; class FooWrapper { bool Bar(LPCWSTR szUnicodeString)
def foo (): x = re.compile('^abc') foo2(x) def foo2(x): How do I get x
class Foo(models.Model): title = models.CharField(max_length=20) slug = models.SlugField() Is there a built-in way to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.