1
<?
xml version
=
"
1.0
"
encoding
=
"
utf-8
"
?>
2
<
statements
>
3
<
select id
=
"
SeletTest
"
>
4
select
*
from bsi_test where
1
=
1
5
<
dynamics
>
6
<
dynamic prepend
=
"
and
"
property
=
"
year
"
value
=
"
year='$year$'
"
/>
7
<
dynamic prepend
=
"
and
"
property
=
"
month
"
value
=
"
month='$month$'
"
/>
8
</
dynamics
>
9
order by name
10
</
select
>
11
</
statements
>
12
所有sql map文件的语法如上所示,语句类型分为insert,update,delete,select.变量符号统一使用$,其他如#,?等符号本架构不支持!nstarfainet的sal map文件的语法格式和ibatisnet的有点类似,但没有ibatisnet那么强大和智能,不过很简单!一看就会! ibatisnet的sql map语句似乎不好处理#,$等特殊字符,nstarfainet在这方面做了些改进。
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
4
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
8
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
10
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
11
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
12
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)