我有一个包含长文本的数据库字段。
我希望用逗号分隔符将其分开,并打印到下一行。
例如:
Field : Description
Data : Hibernate Query Language (HQL) is an object-oriented query language, similar to SQL, but instead of operating on tables and columns, HQL works with persistent objects and their properties.我希望它打印为:
Hibernate Query Language (HQL) is an object-oriented query language,
similar to SQL,
but instead of operating on tables and columns,
HQL works with persistent objects and their properties.发布于 2012-06-21 22:18:53
在查询中,您可以将逗号替换为",\n“。"\n“将强制在Jasper文本字段中换行。
在MYSQL中,您可以使用REPLACE函数。它看起来是这样的:
REPLACE(FIELDNAME, ',', ',\n')https://stackoverflow.com/questions/11131916
复制相似问题