Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by EdWall

  1. EdWall

    How do I delete rows from 1 table that don't exist in another table?

    I suggest that you use an Outer Join on from table A to Table B and limit the records retrieved so that you don't fill up the rollback segment. Then loop round the records in Table A and delete the associated reference records. DECLARE CURSOR del_cursor SELECT A.pk, A.ROWID FROM a, b WHERE...
  2. EdWall

    SQL*Loader question.

    To load into multiple tables, you could use a when clause in your SQL-Loader control file if you have a fixed format file as in the example LOAD DATA INFILE 'daily.dat' REPLACE INTO TABLE prices WHEN (12:17 = 'EUSCAN') TRAILING NULLCOLS ( PROD_CODE POSITION(01:04) CHAR...
  3. EdWall

    get data in steps

    You can use ROWNUM in your query as follows SELECT ... WHERE ROWNUM <= 5 There is a recent thread on this subject in this forum which I will try to locate... Ed
  4. EdWall

    How to Convert SelectBlob and Updateblob to MS SQL Server

    According to the PowerBuilder Documentation, this doesn't seem to need any conversion. The only warning the documentation gives is to state that the AutoCommit property of the transaction object should be set to True for both the DBMSs that you mention. Are you getting a compilation error? Ed
  5. EdWall

    How I can connect two applications to the identic database file?

    Eugenio, I think you have to give a little more information than you have done. You just need to use the same connection details in the two applications. Ed
  6. EdWall

    Number Function Not Working - Unknown Function Name Error???

    Keith, this is not a Powerscript function - it is a DataWindow function. Try Integer() or Long() instead. Ed
  7. EdWall

    Purging/Deleting Large Amounts of Data Oracle 7.3.4 via PL/SQL

    If there are other indexes on the table, these might be detrimental to performance because the indexes have to be updated after each delete. You could remove these before deleting and then recreate them afterwards. It might be worth considering recreating the date index after each deletion too...
  8. EdWall

    use of trigger within a procedure

    To update this data as a one off, why don't you: Create a sequence Write a pl/sql block which loops through the records in the table extracting the primary key. Within the loop, update the id column with the nextval of the sequence using the primary key of the row.
  9. EdWall

    problem with dblink insert to remote database

    Gert, have you tried using something other than SYSDATE in your insert statement or omitting this column. This is a guess but it is a difference between your successful insert and the one which doesn't work. Ed
  10. EdWall

    How many tildes must i wrote ?

    tendo, why don't you have 3 separate fields instead and place them exactly where you want to? Ed
  11. EdWall

    Newbie to Oracle. Bunch of silly questions

    Hi Smilee for question 2) have you looked up details for SQL-Loader. There are a lot of options but you will only need basic ones to be able to load up a table from a tab-delimited or CSV file. Check out the oracle documentation or even sqlldr help initially. Here is a quick example of a...
  12. EdWall

    simple question, please help...

    If you are using SQLPlus, you can type ed to use the system editor which is dependent on the Operating System e.g. Notepad. You don't say whether you are using SQLPlus
  13. EdWall

    what's wrong with this code?

    This will not quite work because the syntax is not exactly correct. You don't really want a COUNT here, you want the department no and to know if the employee cannot be found. I suggest you do it like this: BEGIN select dept_no INTO v_deptNo from employee where empname = p_empname...
  14. EdWall

    auto_decrement

    I suggest that you take care in using a sequence in this way because a sequence's auto-increment is not associated with a transaction at all so that the nextval of the sequence will be incremented even if the transaction containing the update to the department table is not committed for whatever...
  15. EdWall

    Importing Excel to Power Builder

    I am not sure exactly what your context is but the following might help From Excel, you can export the data in tab-delimited format on a per table basis for the target database. In the PowerBuilder IDE, open the Database painter and the tables into which you want to import the data. Choose...

Part and Inventory Search

Back
Top