Welcome to Sign in | Help

Re: mysql - cum se verifica un varchar ca este de tip data ?

  •  05-13-2008, 3:59 PM

    Re: mysql - cum se verifica un varchar ca este de tip data ?

    Aici găseşti
    CREATE FUNCTION IsDate (sIn varchar(1024)) RETURNS INT
    BEGIN
    declare tp int;

    if length(date(sIn)) is not null then
    set tp = 0;
    else
    set tp = 1;
    end if;
    RETURN tp;
    END

View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems