Re: Query with contents of text file.



You can use SQL*Loader to load the contents of the text file into the Oracle database. From there, you can issue your query against that table.

Another option is to use External Tables to interface with the text file directly using SQL statements, just as if the data were in an actual table. There are a few advantages to this option over SQL*Loader. One, if you will be replacing this file's contents on a regular basis, just overwrite the file and the External Table will access the new data. Two, You do not allocate space for the file's contents inside the database like you would if you loaded the file's contents with SQL*Loader.

Both options are discussed fully in the Oracle documentation.

HTH,
Brian

--
===================================================================

Brian Peasland
oracle_dba@xxxxxxxxxxxxxxxxxxx
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
.



Relevant Pages

  • Re: SQL*Loader and Stream Record Format
    ... Oracle Database 10g Express Edition Beta 2 Release for Microsoft ... Windows. ... My table was created and loaded using the load text data ...
    (comp.databases.oracle.tools)
  • Sample code request (C#)
    ... code to connect to an oracle database and do a sql query and load the ... re-write a VB6 app I did in the past to C# as a learning tool:) ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • DB Sample Code Request
    ... code to connect to an oracle database and do a sql query and load the ... re-write a VB6 app I did in the past to C# as a learning tool:) ...
    (microsoft.public.dotnet.languages.csharp)
  • Problems loading java package to database
    ... I'm trying to load a java package to my oracle database but i can't... ... I'm a "begginer" in oracle so i would be very glad if you could help ...
    (comp.databases.oracle.server)
  • Re: SQL Query Invalid operation
    ... > removed though they query is than able to output something. ... > Both tables are made up of values from an oracle database and are ... The tables from which these queries are extracting data, ... You've posted this message in the "modulesdaovba" newsgroup. ...
    (microsoft.public.access.modulesdaovba)