~~~~非常难的问题,请“大力大哥“等高手鼎力相助!~~~~
表type
type_no type_for type_value
1 getCustSumWhsle 您从%1年%2至%3年%4月的业绩为%5,您目前的状态为%6
表extend_msg
extend_id extend_msg_type table_name key_field_name
7 100 Customer_SummaryWhsle Customer_No
表extend_msg_detail
id extend_id field_name disp_index
1 7 customer_no 8
1 7 customer_status 7
1 7 start_year 1
1 7 start_month 2
1 7 end_year 3
1 7 end_month 4
1 7 summaryWhsle 5
1 7 customer_flag 6
我想得到的把表type中“您从%1年%2至%3年%4月的业绩为%5,您目前的状态为%6“
里的%1,%2,%3,%4,%5,%6用表extend_msg_detail中相应的字段值替换(看disp_index)
我打算用存储过程,但是我不该如何做,痛苦中。