Click here to Skip to main content
14,388,831 members
Rate this:
Please Sign up or sign in to vote.
See more:
sWhereForCount := trim(sWhereForCount,' ');

IF(sWhereForCount != '') THEN

    iLength             := length(sWhereForCount) - 2;
    subSQL_WherForCount := substr(sWhereForCount, iLength, 3);

    IF(subSQL_WherForCount = 'AND') THEN
        sWhereForCount := substr(sWhereForCount, 0, iLength);
    END IF;

    sWhereForCount := ' WHERE ' || sWhereForCount || ' ';

END IF;
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100