How to get rowcount from a Clob
Hi,
Is it possible to get a rowcount from a clob, without writing a loop to iterate/count each row?
I'm working on a CSV extract procedure, which has been passed a Clob parameter and I just need to extract its rowcount.
I was expecting a useful function to exist, but it seems not?
Thanks in advance
PD81 wrote:
Okay, if you want to be pedantic about wording:
How do I get a “Line Count” from a clob?
I don’t understand the obsession on this forum of responding to criticise a question , whilst adding no value towards an answer, when it’s plainly clear what the question is aiming to achieve.
I'm not being critical or pedantic.
The same applies, there's no such things as "lines" in a clob. A clob is just a series of characters. As I said it doesn't contain rows, lines or any such structure.
If you want to search a clob for certain things, you need to be looking at the characters within it.
So, now you say you want "lines" rather than rows, but what constitutes a "line"? Is it a chr(10) character? Is it a chr(13)||chr(10) pair of characters? Is it some other character such as a ";" or whatever.
The point is, if you want to get a specific answer, you have to be specific about the requirements.
A CSV file is just a "Character Seperated Values" file, so what consitutes a row or line in that file (in a clob or physical file) is likewise just as ambiguous.
How can people supply you with an coded answer to something when the requirements are ambiguous?
You stated "I was expecting a useful function to exist", and the point is, that why should a function exist to count rows or lines or whatever, when a CLOB, by it's very nature is not a structured data type. The functions that do exist for CLOB's such as INSTR, SUBSTR, REPLACE etc. are the functions appropriate to a clob, so you have to use those.
Similar Messages
-
how to get photos from mac to iPhone 6? when i try it just comes up iCloud instead of my photos
Make sure Settings > iCloud > Photos > iCloud Photo Library (Beta) = "Off"
Then sync your iPhone using iTunes and make sure your sync settings for photos are set correctly in iTunes. -
I got a new computer and don't know how to get music from ipod touch to itunes library
I recently got a new computer and don't know how to get music from my ipod touch to show on my itunes library.
You need to transfer the iTunes folder from the old computer to the new one.
iTunes: How to move your music to a new computer (Mac or Windows):
http://support.apple.com/kb/HT4527 -
I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card. Can anyone help, please?
Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
Matt -
How to get data from a USB-UIRT device using Labview?
How to get data from a USB-UIRT device using Labview?
I'm trying to get data from a USB-UIRT device, is it posible with Labview?
I really appreciate your help,
thanksYou may want to contact the developer of the device for the API and DLL.
http://65.36.202.170/phpBB2/viewforum.php?f=3 -
How to get file from server while click on link
Hi,
i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
following is the Destination url that i gave for the item.
/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
please tell me how to get file from server while click on link.Ok I got your requirement now.
If you are getting file names from view attribute then you should not be adding destination URI property for the link.
Instead you can use OADataBoundValueViewObject API.
Try below code in your controller processRequest method:
I am assuming that you are using classic table.
Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
OATableBean tableBean =
(OATableBean)webBean.findChildRecursive("<table item id>");
OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
Regards,
Sandeep M. -
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
How to get FILENAME from FILE PATH
does anyone know how to get filename from a file path for example
FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
returns
FILENAME: Button.txt@BalusC
ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser. -
How to get data from PDF form?
PDF forms can send data in url like GET or POST method. Is it possible to get data from url, like in PHP http://sever/file.php?item1=value1&item2=value2&item3=value3
In APEX url have specific construction and I don't know how to get value of items (1...3)
Please let me help to find simple method of geting data from URL.
Best Regards,
MarkThe APEX URL syntax is detailed here
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#BCEDJBEH
How to get it from PDF is another matter...
I'm working on an app that downloads PDFs with a Large amount of data as a blob, takes that blob and changes it to XML, then goes through the xml to validate each section of data and then add it into the schema that my apex app is referencing....
I didn't write the original code but I do know that it isn't a quick thing to implement and includes using some uploading some java jar files to your schema and writing some custom java code.
Someone else may be able to help with grabbing PDF data into the URL for the amounts of data you want to pass to apex.
Gus..
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!
Edited by: Gussay on Sep 21, 2009 5:52 PM -
How to get Position from EmployeeInfo in DIAPI
I am using DIAPI(JCO) for SAP B1. According to one or my reuirement i am in need of Position from the EmployeesInfo. But there seems no option or method for getting position from that. Can anyone guide me how to get that from EmployeesInfo ? Any help is appreciated..
Looking at the DI API properties vs. DB fields mapping documentation in the SAP Business One developer area (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c5f5dbcc-0a01-0010-5d82-f25f2bee715e)
it seems that this field is not exposed (yet).
I.e. you could only run a SQL statement to get this information.
Sorry,
Frank -
How to get songs from computer to iphone
how to get songs from computer (I tunes) to iphone?
Have you read the User Guide? http://support.apple.com/manuals/#iphone
Syncing iPad, iPhone, or iPod touch with iTunes
Syncing music to iPod or iPhone -
How to get videos from touch, in full resolution?
How to get videos from touch, in full resolution?
I tried email, but that compresses them.Import them as you would from any digital camera.
http://manuals.info.apple.com/enUS/iPod_touch_iOS4.1_UserGuide.pdf -
How to get resultset from oracle procedure use ejb3
how to get resultset from oracle procedure use ejb3
i know oracle procedure should like this
Create or replace PROCEDURE resultset_test(
aaa IN NUMBER,
bbb OUT sys_refcursor) ....
but what s the ejb3 scripts looks like? please give me an example or link~
ths- there are no EJB3 scripts, only compiled application code
- the part of the EJB spec that deals with databases is called the Java Persistence API, but likely you are just looking for the JDBC API.
Now you should know what to Google to get your "example script": "java jdbc oracle procedure" -
How to get response from such a function
How to get response from such a function (in MODULE USER_COMMAND_0010 INPUT I get "ODGOVOR" 'X'
FUNCTION Z_SEENKRAT.
""Local Interface:
*" EXPORTING
*" REFERENCE(ODGOVOR) TYPE MSEG-KZEAR
DATA ok_code LIKE sy-ucomm.
DATA: test like mseg-kzear.
BREAK-POINT.
call screen 10.
test = ODGOVOR.
ENDFUNCTION.
*& Module CLEAR_OK_CODE OUTPUT
text
MODULE clear_ok_code OUTPUT.
CLEAR ok_code.
ENDMODULE. " CLEAR_OK_CODE OUTPUT
*& Module USER_COMMAND_0010 INPUT
text
MODULE USER_COMMAND_0010 INPUT.
DATA odgovor LIKE mseg-KZEAR.
CASE ok_code.
WHEN 'DA'.
ODGOVOR = 'X'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0010 INPUTHi,
You need to declare the ODGOVOR variable in the TOP include, then you will get the value
Regards
Sudheer -
How to get photos from iPhoto back onto a SD card. I have a MacBook Pro with built in SD card slot. I have tried "Export" but this does not work.
It's best to export the photos to a folder and then drag the folder onto the memory card. Memory cards are usually formatted for PCs, FAT 32, which doesn't permit more than a limited number of files in the root directory. Putting the photos in a folder gets around that limitation.
OT
Maybe you are looking for
-
API of Resource object managment - OIM 11g R2
Hi All, I want to provision a resource (say 'AD User') from a post event handler (OIM 11g R2) during user creation. Please tell me the API to be used. In OIM 10g, we can use 'tcObjectOperationsIntf' interface to operate on resource objects. what API
-
990XA-GD55 not posting need bios repair
I have a 990 XA-GD 55 motherboard with a vishera fx-6300 6 core processor 650w raid max powersupply 12gb ram Gigabyte hd 6300 gpu I recently purchased a power color HD-7870. When I plugged in the power color graphics card it did not work the first
-
For the past couple of days itunes hasn't been opening for some reason. i recently burned a few movies to my computer and thats it. Only about 2 GB left, but this never happened before. Help please? Dell dimension 2400 Windows XP
-
i am getting multiple errors when trying to insert data into a table through pl/sql declaration here are the errors: --Procedure to insert the values into section table(ex1.sql) declare v_section %type; begin v_section.SECTIONNO:=&no; v_section. DESC
-
What is the simplest way to record a count of hits to a Web page that is platform-independent, secure and client-friendly?