User Profile

Collapse

Profile Sidebar

Collapse
twinklyblue
twinklyblue
Last Activity: Jun 12 '10, 03:34 PM
Joined: Jun 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ordering of japanese characters in select statements

    Hi The Scripts team,

    I would like to ask how oracle handles ordering of japanese characters? I have used order by in my select statement but is not sure if it displays the correct ordering. Thank you in advance..
    See more | Go to post

  • hi pbmods,

    thanks for your reply.. however, I am working with Postgres :) I am sure there is a corresponding equivalent for this function.. I can start from this. thanks
    See more | Go to post

    Leave a comment:


  • twinklyblue
    replied to Returning SETOF in plpgsql
    Hi michaelb,

    Thanks again for helping! It worked now!
    See more | Go to post

    Leave a comment:


  • twinklyblue
    started a topic Returning SETOF in plpgsql

    Returning SETOF in plpgsql

    Hi thescripts team,

    I would like to ask for your help once again regarding returning set of records in plpgsql. I followed examples presented in other sites regarding this function but my script doesnt work.

    here's my code
    Code:
    create or replace function find_postal(varchar, varchar, varchar) returns setof record as
    '
    	declare 
        	ret_row record;
            prefnme alias for $1;
    ...
    See more | Go to post

  • After posting this thread, I found out my answer. (through experiments).

    Code:
    foreach ($rowarray as $row)
    {
    	for($i=0;$i<count($row);$i++)
    	{
    		echo $row[$i]." ";
    	}
    }

    Whew!
    See more | Go to post

    Leave a comment:


  • Fetching a row in a array where the column number is unknown

    Hi thescripts team,

    I am trying to retrive a array and display its contents in the page. However, this array will be dynamic, meaning it will have different sizes in each call (there is a function that will handle the display). My question is, how would I make php read the array where it doesnt need to know the number of columns it has? Any technique that I can implement?

    Here's a part of the code that I am currently...
    See more | Go to post

  • twinklyblue
    replied to Implementing encryption in PHP pages
    in PHP
    thanks dafodil, it is what i need. didnt think it would be in the php page.
    See more | Go to post

    Leave a comment:


  • twinklyblue
    started a topic Implementing encryption in PHP pages
    in PHP

    Implementing encryption in PHP pages

    HI thescripts team,

    I would like to know if anyone know a good site about SSL in PHP? I already did all the essentials (apache + ssl + mod_ssl installations) but need to test them on a real PHP page. Thanks for your help as always.
    See more | Go to post

  • twinklyblue
    replied to array parameter in plpgsql function
    hi michaelb,

    Thank you very much!! It worked now. I am so happy to have you here in thescript. You've helped me a lot already. ^^
    See more | Go to post

    Leave a comment:


  • I'm running on Linux 8.0
    See more | Go to post

    Leave a comment:


  • twinklyblue
    started a topic array parameter in plpgsql function

    array parameter in plpgsql function

    Hi team,

    I am creating a function that would accept an array of integer as its parameter. I have a table where one of its column is declared as an array. This is an excerpt from the script that I was creating:

    Code:
    create or replace function insert_busshours(bigint, varchar, integer[]) returns integer as
    '
    	begin
           insert into businesshours values ($1,$2,$3);
           return ''0'';
    ...
    See more | Go to post

  • hi michaelb,

    thanks for your reply as always. My postgres version is 7.4.1. Do you think this is the version that has this problem?

    I followed your suggestion and uploaded the file in batches. First, 100 lines, then I went on on until I got the error when I was uploading about 1000 lines. Then I found that the limit is 600 lines per batch. given this statistics, it is nearly impossible to upload 200k lines by batches...
    See more | Go to post

    Leave a comment:


  • Hi!

    I tried the copy command for the uploading of the data with the following commands used:

    Code:
    copy area_new from '/var/lib/pgsql/KEN_ALLpk.txt' with delimiter ';';
    then I encountered the following error following the execution of this command:

    Code:
    ERROR:  invalid memory alloc request size 1073741824
    I am not sure where the error is.. but this is how one of my rows looks...
    See more | Go to post

    Leave a comment:


  • Hi All,

    After a few readings, I found out about the copy command. I tried executing this code but encountered an error.

    Code:
    copy ken_all from '/var/lib/pgsql/KEN_ALL.CSV';
    error msg:
    ERROR: invalid memory alloc request size 1073741824

    is there something wrong with my script?
    See more | Go to post

    Leave a comment:


  • bulk copy from flat file to postgres dbserver

    Hi The Scripts team,

    I would like to know if there is a same function like bcp (for sybase and mssql 2k) for postgres? Is there any way that I can copy my csv datafile into the postgres database? For anyone who knows, thanks as always.
    See more | Go to post

  • twinklyblue
    replied to Cannot compile plpgsql function
    HI Mike,

    Sorry for the late reply but apparently, I was able to debug my script. Thanks for your help as always!
    See more | Go to post

    Leave a comment:


  • twinklyblue
    replied to Cannot compile plpgsql function
    Hi Mike, The language apparently was installed by someone (i am not sure who but the last time i check it..it was already there) so I tried to recompile the stored proc again. It was successfully recompiled however, there is a runtime error which I cant understand. (postgreSQL's error display is really not that friendly, IMHO).

    error:
    ERROR: syntax error at or near "$1" at character 16
    CONTEXT: PL/pgSQL function...
    See more | Go to post

    Leave a comment:


  • twinklyblue
    replied to syntax is not supported error
    I fortunately found the reason for my problem. I got the syntax incorrect. It should be

    [code=sql]
    SELECT * FROM menu OFFSET 0 LIMIT 10
    [/code]...
    See more | Go to post

    Leave a comment:


  • twinklyblue
    started a topic syntax is not supported error

    syntax is not supported error

    HI team,

    I was trying to run the following code and got the below error. Can someone inform me why this is such? I'm using Postgres 7.2. Any workaround to make this script work? Thanks!

    [code=sql]
    SELECT * FROM menu LIMIT 0, 10
    [/code]

    error:
    LIMIT #,# syntax is not supported
    See more | Go to post

  • twinklyblue
    replied to Cannot compile plpgsql function
    [CODE=sql]select * from pg_language;[/CODE]
    Here's the result for this step:
    Code:
     lanname  | lanispl | lanpltrusted | lanplcallfoid | lanvalidator |    lanacl   
    ----------+---------+--------------+---------------+--------------+---------------
     internal | f       | f            |             0 |         2246 |
     c        | f       | f            |             0 |         2247 |
     sql      | f       | t
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...