由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Help: a Perl script question, Thanks (转载)
相关主题
perl用DBI操作MySQL出错的问题问C++文件路径的问题
Perl插入MySQL中双引号的问题perl eval and if
Perl/MySQL下fetchrow出错大家看看这道C语言题是怎么回事?
Perl DBI比python的MySQLdb快吗?try catch question
C#, recruiter发过来的面试题 (转载)再问个fork的题 (转载)
JHQ的一道指针题。[转载] 在CGI程序中有何好方法返回HTML
find command (转载)What language I should use?
关于perl和linux shell script的书最经典有哪些? (转载)求助:script for commands (转载)
相关话题的讨论汇总
话题: perl话题: dbi话题: script话题: question话题: null
进入Programming版参与讨论
1 (共1页)
f**c
发帖数: 629
1
【 以下文字转载自 JobHunting 讨论区 】
发信人: flac (fish), 信区: JobHunting
标 题: Help: a Perl script question, Thanks
发信站: BBS 未名空间站 (Fri Feb 29 00:50:35 2008)
assuming the following database table:

create table userinfo (
id int not null primary key auto_increment,
username varchar(12) not null,
salary int not null
);
And assume that using Perl DBI, you can access the database with:
use DBI;
my $drh = DBI->install_driver("mysql");
my $dbh = DBI->connect( "DBI:my
T*****e
发帖数: 361
2
Execute the SQL call with an "order by" clause to solve (a), and save a copy
of all records in memory while printing the sorted records. An array of
array references will do.
Use "sort" function with a code block to sort the records according to
username/salary for (b) and (c).
1 (共1页)
进入Programming版参与讨论
相关主题
求助:script for commands (转载)C#, recruiter发过来的面试题 (转载)
简单的perl问题JHQ的一道指针题。
你认为ubuntu下面写script,用perl还是python更好? (转载)find command (转载)
How to put a perl script to run from a web site?关于perl和linux shell script的书最经典有哪些? (转载)
perl用DBI操作MySQL出错的问题问C++文件路径的问题
Perl插入MySQL中双引号的问题perl eval and if
Perl/MySQL下fetchrow出错大家看看这道C语言题是怎么回事?
Perl DBI比python的MySQLdb快吗?try catch question
相关话题的讨论汇总
话题: perl话题: dbi话题: script话题: question话题: null