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 Andrzejek 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. thedumbkid

    anybody ever tried to use backward slash???

    yea... or SELECT * FROM thetable WHERE company='Peg''s Antiques'; seems to work too but I have one more question... placing double \\ works for INSERT and UPDATE... when I view the data, there's one \ in it what about when doing searches??? like I wanna do: SELECT * FROM thetable WHERE...
  2. thedumbkid

    anybody ever tried to use backward slash???

    anybody ever tried to do: INSERT INTO mytable (column1) VALUES ('\'); that doesn't seem to work but INSERT INTO mytable (column1) VALUES ('\\'); works... why is that???
  3. thedumbkid

    Cheking if a query has no results

    you can do <cfif query_name.recordcount eq 0>
  4. thedumbkid

    Question about dynamic query

    nevermind I found the answer... I can use rec record; and then to assign: for rec in execute ''select count(*) from '' || v_table_name || '' as count'' loop v_num := rec.count; end loop;
  5. thedumbkid

    Question about dynamic query

    I have another question :) It's about dynamic query... Is it possible to use a dynamic query in pl/pgsql function to update a variable? I am trying to do something like the following: create function myfunction(varchar) returns int4 as ' declare v_table_name alias for $1; v_num int4...
  6. thedumbkid

    question about returns &quot;set&quot;

    got an answer from mailing list that this is not possible in postgresql yet I am using user-defined types now
  7. thedumbkid

    question about returns &quot;set&quot;

    hi rycamor, thank you for the links :) I am converting everything from SQL Server to PostgreSQL for an application. It's going to support Oracle, SQL Server and PostgreSQL so I need a solution that's easy to maintain. Is refcursor the only way to get a set of rows if I don't want to use...
  8. thedumbkid

    question about returns &quot;set&quot;

    Is returns &quot;set&quot; the same as returning a table??? by that I mean, if I have a function that returns &quot;set&quot; can I do the following? create function myfunction() returns &quot;set&quot; as ' begin return [some SELECT statement here]; end;' language 'plpgsql'; if so, can...
  9. thedumbkid

    default value for parameters

    Hi people, I am doing database migration from MS SQL Server to PostgreSQL. I need to know whether parameters can have default values? In ms sql server, you can assign default values to your parameters. This feature allows you to call the stored procedure without giving parameters that have...

Part and Inventory Search

Back
Top