【正文】
通的基表,我們直接使用它,就當(dāng)它是基表 _v,視圖,給Form用 _kfv,啟用關(guān)鍵性彈性域的時(shí)候動(dòng)態(tài)生成的視圖,包含Concact過的字段組合 _dfv,啟用描述性彈性域的時(shí)候動(dòng)態(tài)生成的視圖,我們?nèi)椥杂蜃佣蔚拿枋龅臅r(shí)候,需要用用戶出口函數(shù)。}/style四. 查找數(shù)據(jù)的方法及Oracle Application表命名的規(guī)律 查找數(shù)據(jù)的方法請(qǐng)參閱《在ERP系統(tǒng)中查找數(shù)據(jù)的方法》 Oracle Application表命名的規(guī)律 一般來說,在Applications中所有的表的命名都是相當(dāng)規(guī)范,通過名字,一般都可以知道這個(gè)表是做什么用,而且還可以通過查看FND_TABLES和FND_COLUMNS來獲得表的詳細(xì)信息。}.tb_css{bordercollapse:collapse。verticalalign:middle。BACKGROUNDCOLOR:white。color:black。fontsize:9pt。 在報(bào)表中預(yù)置了以下css(具體請(qǐng)參閱包FJ_OUTPUT): style type=text/cssbody{margintop:0。顧名思義,它是一種設(shè)計(jì)網(wǎng)頁(yè)樣式的工具實(shí)際上CSS的代碼都是由一些最基本的語(yǔ)句構(gòu)成的。通過這兩個(gè)屬性,可以改變圖形的大小,如果沒有設(shè)置,圖形按原大顯示 CSS修飾 CSS是Cascading Style Sheets(層疊樣式表單)的簡(jiǎn)稱。地址的表示方法可以沿用上一篇內(nèi)容“文件的鏈接”中URL地址表示方法。 跨多列的表元 th colspan= td colspan= colspan表示跨越的列數(shù),例如colspan=2表示這一格的寬度為兩個(gè)列的寬度。BODY 標(biāo)記一般不省略, 表示正文內(nèi)容的開始。我們還會(huì)看到一些Hompage省略HTML標(biāo)記, 文件被Web瀏覽器默認(rèn)為是HTML文檔。 1 HTML的基本結(jié)構(gòu) 超文本文檔分文檔頭和文檔體兩部分,在文檔頭里,對(duì)這個(gè)文檔進(jìn)行了一些必要的定義,文檔體中才是要顯示的各種文檔信息。三. HTML技術(shù)和CSS修飾 HTML技術(shù) HTML英語(yǔ)意思是:Hypertext Marked Language,即超文本標(biāo)記語(yǔ)言,是一種用來制作超文本文檔的簡(jiǎn)單標(biāo)記語(yǔ)言?! ∮扇N方式拋出異?! ? 通過PL/SQL運(yùn)行時(shí)引擎 . 使用RAISE語(yǔ)句 . 調(diào)用RAISE_APPLICATION_ERROR存儲(chǔ)過程 當(dāng)數(shù)據(jù)庫(kù)或PL/SQL在運(yùn)行時(shí)發(fā)生錯(cuò)誤時(shí),一個(gè)異常被PL/SQL運(yùn)行時(shí)引擎自動(dòng)拋出。PL/SQL程序編譯時(shí)的錯(cuò)誤不是能被處理得異常,只有在運(yùn)行時(shí)的異常能被處理。這種擴(kuò)展使PL/SQL的異常處理非常靈活。當(dāng)發(fā)生錯(cuò)誤時(shí),程序無條件轉(zhuǎn)到異常處理部分,這就要求代碼要非常干凈并把錯(cuò)誤處理部分和程序的其它部分分開。視圖的定義視圖是一個(gè)虛擬的、不是物理存在的表,他是通過sql語(yǔ)句把一個(gè)或多個(gè)表連接在一起形成的.) from suppliers*****************************************************************************************數(shù)組的定義Type NumArray Is Table Of Number Index By Binary_IntegerType StrArray Is Table Of Varchar2(500) Index By Binary_Integer記錄的定義Type rp_tb_type Is Record (TbBorder Varchar2(10), TbCss Boolean, TdCss Boolean )游標(biāo)的定義Cursor cur_line Is Select , From fj_rp_opm003_tmp_tb tb Where = 。 would return a date value of Mar 15, 2002 nvl (string1, replace_with ) This function lets you substitutes a value when a null value is encountered Example 1:select NVL (supplier_city, 39。yyyymmdd39。2002031539。)。, 39。 would return a date value of July 9, 2003. to_date (39。yyyy/mm/dd39。2003/07/0939。Jul 9th, 200339。)。 to_char (sysdate, 39。 would return 39。FMMON DDth, YYYY39。JUL 09TH, 200339。)。 to_char (sysdate, 39。 would return 39。FMMonth DD, YYYY39。July 09, 200339。)。 to_char (sysdate, 39。 would return 39。yyyy/mm/dd39。00002139。00009939。$1,39。$9,39。1,39。9,39。39。39。9939。2339。99939。54639。39。39。e39。Tech on the net39。e39。, 1, 3) would return 14。, 39。 instr (39。 the second occurrence of 39。e39。Tech on the net39。e39。, 1, 1) would return 2。, 39。 instr (39。 the first occurrence of 39。e39。Tech on the net39。Gateway39。Hewlett Packard39。Microsoft39。IBM39。Tech39。Tech on the Net39。is a test39。This is a test39。is39。This is a test39。 start_position, This would return all records sorted by the supplier_city field in descending order. UNION The UNION query allows you to bine the result sets of 2 or more select queries. It removes duplicate rows between the various select statements.Each SQL statement within the UNION query must have the same number of fields in the result sets with similar data types.The syntax for a UNION query is:select field1, field2, field_n from tablesUNIONselect field1, field2, field_n from tables UNION ALL The UNION ALL query allows you to bine the result sets of 2 or more select queries. It returns all rows (even if the row exists in more than one of the select statements).Each SQL statement within the UNION ALL query must have the same number of fields in the result sets with similar data types.The syntax for a UNION ALL query is:select field1, field2, field_n from tablesUNION ALLselect field1, field2, field_n from tables。IBM39。 ORDER BY supplier_city。 The ORDER BY clause sorts the result set based on the columns specified. If the ASC or DESC value is omitted, the system assumed ascending order. ASC indicates ascending order. (default)DESC indicates descending order. Example 1 SELECT supplier_city FROM supplier WHERE supplier_name = 39。 Because you have listed one column in your SELECT statement that is not encapsulated in the SUM function, you must use a GROUP BY clause. The department field must, therefore, be listed in the GROUP BY section. Having The HAVING clause is used in bination with the GROUP BY clause. It can be used in a SELECT statement to filter the records that a GROUP BY returns. The syntax for the HAVING clause is: SELECT column1, column2, ... column_n, aggregate_function (expression)FROM tables WHERE predicates GROUP BY column1, column2, ... column_nHAVING condition1 ... condition_n。 GROUP BYThe GROUP BY clause can be used in a SELECT statement to collect data across multiple records and group the results by one or more columns. The syntax for the GROUP BY clause is: SELECT column1, column2, ... column_n, aggregate_function (expression)FROM tablesWHERE predicatesGROUP BY column1, column2, ... column_n。 SELECT * FROM supplier WHERE supplier_name like 39。 SELECT * FROM supplier WHERE supplier_name not like 39。 SELECT * FROM supplier WHERE supplier_name like 39。 This would return all rows where the supplier_name is neither IBM, Hewlett Packard, or Microsoft. Sometimes, it is more efficient to list the values that you do not want, as opposed to the values that you do want. Like The LIKE condition allows you to use wildcards in the where clause of an SQL statement. This allows you to perform pattern matching. The LIKE condition can be used in any valid SQL statement select, insert, update, or delete. The patterns that you can choose from are: % allows you to match any string of any length (including zero length) _ allows you to match on a single characterSELECT * FROM supplier WHERE supplier_name like