fop的流程控制语句
fop中条件判断有两种方式: 第一、 if语句 <xsl:if test=”host =’wenhq'”> <fo:block>亲亲宝宝</fo:block> </xsl:if> host是xml中数据,可以动态设置 第二、 when语句 <xsl:choose> <xsl:when test="host ='wenhq'"> <fo:block>亲亲宝宝</fo:bl...阅读全文
fop中条件判断有两种方式: 第一、 if语句 <xsl:if test=”host =’wenhq'”> <fo:block>亲亲宝宝</fo:block> </xsl:if> host是xml中数据,可以动态设置 第二、 when语句 <xsl:choose> <xsl:when test="host ='wenhq'"> <fo:block>亲亲宝宝</fo:bl...阅读全文
fop中一般是这样应用图片: <fo:external-graphic src=”url(/path/cover1.jpg)” /> 这样图片是不会变的,有时需要根据条件换个图片,src属性值不能引入<xsl:value-of select= 去获取xml中的值。可以通过attribute的属性给src动态赋值,如: <fo:external-graphic> <xsl:attribute name=...阅读全文
1、查看当前的连接数 mysqladmin -u root -proot -h 127.0.0.1 processlist 2关于自增字段重新赋初值的问题? ALTER TABLE tbl AUTO_INCREMENT = 1; 3、查看当前最大连接数: mysqladmin -uroot -proot variables |find “max_con” mysqladmin -uroot -proot variables |find “threads” 4、修改...阅读全文
mysql使用sql查询表名的两种方法: 1、show tables; 2、SELECT TABLE_NAME,TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=’dbname’;–dbname为mysql的数据库名称 查询指定数据库中指定表的所有字段名 select column_name from information_schema.columns where table_schema=’YOUR...阅读全文