Redian新闻
>
请教天才一个很弱的问题
avatar
请教天才一个很弱的问题# TeX - TeX电子排版系统
n*w
1
请问第三国博士学位做相应于美国博士学位的评估
大家都用哪个公司的哪类服务
大概多少钱?
多谢!!
avatar
m*o
2
有一个file, 里面有好几个select query,这几个select query之间用 echo 隔开,文
件是这样的:
\! echo "Number of emails ";
\! echo "-------------------------------------------------------------------
avatar
h*c
3
tex文件里有若干个png file, latex sometex.tex之后,
在dvi里面可以看见,
dvips sometex.dvi -o sometex.ps之后
在sometex.ps里却看不见了,
如之奈何?
avatar
v*r
5
I don't think you can invoke OS command inside mysql prompt. You can try:
1. Use tee to spool
mysql> tee all_tables.txt
Logging to file 'all_tables.txt'
mysql> show tables;
+--------------------------------+
| Tables_in_mypdc |
+--------------------------------+
| activemeasurement |
| calculatedmeasurement |
| calculatedmeasurementdetail |
| company |
| configurationentity |
| customactionadapter |
| customactionadapterdetail |
| custominputadapter |
| custominputadapterdetail |
| customoutputadapter |
| customoutputadapterdetail |
.......................
.......................
mysql> notee
2. Write a shell script to include multiple mysql command (one for each
query), something like this:
#!/bin/bash
...
# report header 1
echo "Number of emails "
mysql -t db < emails.sql >> output_report.txt
....
# report header 2
echo "Number of files "
mysql -t db < files.sql >> output_report.txt
....

【在 m******o 的大作中提到】
: 有一个file, 里面有好几个select query,这几个select query之间用 echo 隔开,文
: 件是这样的:
: \! echo "Number of emails ";
: \! echo "-------------------------------------------------------------------

avatar
a*e
6
标准的dvips不支持png
用dvipdfmx或pdflatex试试

【在 h**********c 的大作中提到】
: tex文件里有若干个png file, latex sometex.tex之后,
: 在dvi里面可以看见,
: dvips sometex.dvi -o sometex.ps之后
: 在sometex.ps里却看不见了,
: 如之奈何?

avatar
m*o
7
Thanks for reply.
In the second method you mentioned, is there any way I can combine the
output with echo? - instead of the output file with the query result, I
also want the header you mentioned.
Thanks a lot!

try:

【在 v*****r 的大作中提到】
: I don't think you can invoke OS command inside mysql prompt. You can try:
: 1. Use tee to spool
: mysql> tee all_tables.txt
: Logging to file 'all_tables.txt'
: mysql> show tables;
: +--------------------------------+
: | Tables_in_mypdc |
: +--------------------------------+
: | activemeasurement |
: | calculatedmeasurement |

avatar
h*c
8
试验了若干办法,还是转EPS吧,这条比较DETERMINISITIC

【在 a**e 的大作中提到】
: 标准的dvips不支持png
: 用dvipdfmx或pdflatex试试

avatar
v*r
9
Same as re-directing and appending the output of mysql result:
echo "Heading ..." >> output_report.txt

【在 m******o 的大作中提到】
: Thanks for reply.
: In the second method you mentioned, is there any way I can combine the
: output with echo? - instead of the output file with the query result, I
: also want the header you mentioned.
: Thanks a lot!
:
: try:

avatar
b*n
10
use pdflatex to include png & jpeg files.
avatar
m*o
11
great! Thanks!

【在 v*****r 的大作中提到】
: Same as re-directing and appending the output of mysql result:
: echo "Heading ..." >> output_report.txt

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。