Querying for 2nd validation statement on an existing field in APEX

我的梦境 提交于 2020-03-25 19:12:11

问题


where id = (select id from tab1 where col2 = 'range') and desc = 'min'; 

var max := select LV R from LV 
where id = (select id from tab1 where col2 = 'range') and desc = 'max';

begin if :P1_range < min or :P1_range > max then 'invalid range' 
end if; 
end;

the above ^ will be my 2nd validation statement. i have one validation statement in place that the field must have a value in it.


回答1:


When using validations, the exact syntax will depend on the Type you've selected. Use the inline help to ensure you match expression format.

Also make sure you explicitly convert and numbers and dates, since sessions state is stored as a string.

If you receive any errors, it's best to describe them here, as they will allow for quicker resolution.



来源:https://stackoverflow.com/questions/60528180/querying-for-2nd-validation-statement-on-an-existing-field-in-apex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!