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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. frasernm

    problem with 2 table pl/sql update script

    Excellent, thanks for the help. f.
  2. frasernm

    problem with 2 table pl/sql update script

    Hi, I have a problem with a simple(!) pl/sql script that I'm using to update a small table of local employees (past & present) from another table of all current employees. The cursor query returns 160+ ids, the script then seems to loop ok, but no changes are being made - I have had it...
  3. frasernm

    hi, I've a script which inserts

    hi, I've a script which inserts (correctly) into several tables. I'm trying to get errors from dbi so that I can rollback, and then display a more user-friendly error message than the standard database error if something goes wrong (usually the form not filled out correctly). On an error my...
  4. frasernm

    Timezone Problem

    Hi, I've got a (fairly large) perl web-based application with an Oracle 9i back-end. The database has been hosted in the UK (with GMT time), but is about to be moved to Holland (CET time, so 1hr ahead). Every time we use systimestamp/sysdate it's one hour ahead, and it's producing wrong...
  5. frasernm

    Auto Increment Stopped Working

    Hi, Thanks for that - if I were to take a copy of the data and recreate the table - I should be able to get numbers in the 500s again then? Thanks, Fraser
  6. frasernm

    Auto Increment Stopped Working

    Hi, I have a problem with an auto-increment column - the auto increment number keeps inserting 32767 as the value, despite the largest value being around 500. This used to works - what's gone wrong? I've include sample data and table specification below. Thanks, Fraser mysql> select * from...
  7. frasernm

    Problem with CASE/CONCAT

    Hi, I have a query as follows (I've removed most of the selected fields for clarity): SELECT fixid, CASE WHEN result IS NULL THEN ' ' WHEN result = 'won' or result = 'lost' THEN CONCAT(result, ' by ', margin, ' ', resulttype) ELSE result END AS res, result, margin, resulttype FROM team...
  8. frasernm

    Problem with use

    Hi, I have a number of .pm files (all contained in ./lib) - this was one file, but I split it up as the number of subroutines was getting unmanagable. Each file contains methods that are used by subroutines in the other .pm files. Do I have to to put use a; use b; use c; etc... in all of my...
  9. frasernm

    Getting Inserted Sequence Value using DBI

    Thanks, I've toyed with both 2 and 3 (3 would be great *if* we could get the value back). re 2 - what if you have more than one concurrent user? Fraser
  10. frasernm

    Getting Inserted Sequence Value using DBI

    Hi, We're using perl dbi and oracle (via a proxy server). We have a number of tables where the primary key is a sequence. When we insert a row to one of these tables we need to find the value of the sequence inserted so we can use that in other queries. We've tried a few methods, but without...
  11. frasernm

    Changeing Y-axis in GD Graph

    Hi, I've changed the y-axis minimum to be 95% instead of 0%, but while the bottom of the graph is 95%, the bars are still drawing from zero (ie disappearing off down the bottom of the canvas, covering the labels). Does anyone know how to only draw the bars from y = 95? Thanks in advance...
  12. frasernm

    Outer join on like

    Hi, Is it possible to do an outer join using a like condition? How about , for example, on (a.a like b.a or a.a like b.c)? Thanks in advance, Fraser
  13. frasernm

    Stacked Charts

    Thanks Jonsi but... I also need to be able to see more than one month on a time so I have January's 3 columns (columns 4 stacked, 1 column, 1 column), February's 3 columns (columns 4 stacked, 1 column, 1 column) etc... How would I do this? F
  14. frasernm

    Stacked Charts

    Hi, I'm trying to draw a bar chart with 6 series in each month. For each month of the chart I would like the first 4 series stacked in one bar and the next two series in different bars (on their own - not stacked). Is this combination possible of stacked bars/simple bars possible? Thanks in...
  15. frasernm

    GD::Graph

    Hi, I'm trying to draw graphs in GD::Graph with some problems - I have two queries, the second of which produces the graph perfectly (for the last 39 days). The first query doesn't produce a graph. I can't see any difference (other than the number of rows returned - the second query doesn't...
  16. frasernm

    Can't locate Log/Agent.pm

    Hi, The lines are (with username and password replaced): my $connect = q{username/password@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = MOON) (PROTOCOL = TCP)...
  17. frasernm

    Can't locate Log/Agent.pm

    Hi, No the error module doesn't have anything to do with Log::Agent. Another mysterious happening is the error function is being called to display the error despite there being no call in the oracle script. Fraser
  18. frasernm

    Can't locate Log/Agent.pm

    Hi, I'm migrating a tool from a postgres back-end to a oracle back-end. The perl script uses our own error.pm. The postgres script runs perfectly, but the oracle script fails to run with the error: Can't locate Log/Agent.pm in @INC ... at (eval 4) line 2. We can connect to the oracle...
  19. frasernm

    Shell Script

    Hi, I'm trying to write a shell script which logs in to postgres, executes a file filled with SQL commands (and in an ideal world would write output/errors to a file) and then exits postgres. I can't get the script to do anything else than log into the database. I'm new to unix, so apols if...
  20. frasernm

    Use of Bind Variables

    Hi, Got a script for a report that uses three bind variables. (Excerpts from the script are below) This first query to produce the headers for the csv file works ok, but the second query to display the data returns 'ORA-01008: not all variables bound', but not if I replace all :startDate...

Part and Inventory Search

Back
Top