473,765 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

External Table with only one column

90 New Member
Hi All,
I need to create an external table to extract data from a flat file
which having only one field.

Also from that field first two character should not come in the table.

Please help me .


Regards,
Gyanendar
Nov 3 '08 #1
7 6780
Pilgrim333
127 New Member
Hi Gyanendar,

Here is a link with info on the external table. If that doesn't work for you, post the problems you are encountering here.

External tables

Pilgrim
Nov 3 '08 #2
gyanendar
90 New Member
Hi Gyanendar,

Here is a link with info on the external table. If that doesn't work for you, post the problems you are encountering here.

External tables

Pilgrim
Thanks for the Reply.

I created the table and its working.

I need one more thing.
I have to get all the value in the external table except first and last row.

For 1st row SKIP N is working,but for last row i don't know how to do that.

Could you please suggest me the way how to achieve this .

Regards,
Gyanendar
Nov 3 '08 #3
amitpatel66
2,367 Recognized Expert Top Contributor
you need to do a substr on your external table for the data coming form flat file. select the data from third position till the last whcih will help you eliminate first two characters
Nov 3 '08 #4
debasisdas
8,127 Recognized Expert Expert
please find a related discussion here.
Nov 3 '08 #5
Pilgrim333
127 New Member
Hi,

I think you are talking about the first and the last row, and not the first and last character. What I could find on the internet is the following:

1. Add a parameter r type recnum to the access parameters in the create table statement of your external table.

2. Make a view on the external table in which you omit the first and last row, using the recnum as criteria.

If you have any problems, just post it here.

Pilgrim.
Nov 3 '08 #6
gyanendar
90 New Member
Hi,

I think you are talking about the first and the last row, and not the first and last character. What I could find on the internet is the following:

1. Add a parameter r type recnum to the access parameters in the create table statement of your external table.

2. Make a view on the external table in which you omit the first and last row, using the recnum as criteria.

If you have any problems, just post it here.

Pilgrim.
Hi Pilgrim,
If I create view of the data from external table one more object will get created in database.
Can we have any other way to get around this .

Regards,
Gyanendar
Nov 7 '08 #7
Pilgrim333
127 New Member
Hi,

I don't think that is possible, unless you know what number the last number will be. If the last record always will be x then you can say skip x, otherwise you have to do it with the view.

If anyone else has another solution, i would really like to know that.

Pilgrim.
Nov 7 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

9
25807
by: Don Grover | last post by:
I have a HTML table created using ASP as a web page. ie. HEADING1 HEADING2 HEADING3 etc... data 1 data2 data3 etc and so on How can I toggle hide / show the columns individually, anyone ever needed to do this and have any suggestions.
7
2195
by: pfa | last post by:
I have a udf which returns a table. I was hoping to access the NEXTVAL from a sequence to affect the logic flow and consequently the return result. I'm using a LANGUAGE C type function. Here's the fetch snippet case SQLUDF_TF_FETCH: /* fetch next row */ { char * nextid = myrecids++;
7
2291
by: slitvinov | last post by:
I am learning Relax NG. The problem is that I cannot figure out how to make a schema for a table. In my case I would like to make a table with any name of child elements (columns) but columns should have the same number of child elements (cell). Say this file is valid <table> <column> <cell/> <cell/> </column>
117
18572
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of elements in the HTML to get everything just right. When you consider the class attribute on the DIV elements, there's not much size savings anymore for using DIV. There are other disadvantages to not using TABLE/TR/TD, such as the lack of ability...
0
2917
by: Nyrine | last post by:
Hi ! I have some external tables set up to load data into an oracle 9i database. My table is created as : create table XT405 ( . . XREF2 NVARCHAR2(50)
0
3079
by: aniendow | last post by:
Hi All, I am trying to upload a TAB delimited file into a database table. Considering the performance issue I thought EXTERNAL TABLE is my best option but with one problem, My table has CLOB columns but when I tried to create EXTERNAL TABLE with CLOB column Oracle is giving error saying "column type is not supported in external organised table." :confused: But I have to upload the flat file data along with the CLOB columns... how...
9
6797
by: PeteCresswell | last post by:
I've got something called "Reference Rates". The idea is that on a given day, we have various rates of return for various entities. e.g. Libor 3-month return, Libor 6-month return, US Treasury Bonds, the Prime rate, and so-forth. We associate a security with one of those rates. There are a set of rates for each calendar day, and the rates for that
3
4051
by: tundal45 | last post by:
Hey Guys, I am trying to automate the process of loading data in our oracle server. As a part of that process, I am working on a perl script that loads external tables from data files. What I am seeing is that I get following error when I select from external table created using script. ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error KUP-00554: error encountered while parsing access parameters...
5
4955
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums there are, it crashes. There are currently 6 columns, and I only want 4. How do I remove the last two (discount and date)? Here is a link: http://www.jaredmoore.com/tablesorter/docs/salestable.html Here is some jquery js that I think...
0
9566
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10153
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9946
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8830
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7371
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5272
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3530
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.