From 8d9dd3441eb8de41d2ddcc8baeb5efa93fed5da6 Mon Sep 17 00:00:00 2001 From: lissav <lissav@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd> Date: Thu, 4 Nov 2010 16:34:50 +0000 Subject: [PATCH] add support for command line sql statement git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8043 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/pods/man8/runsqlcmd.8.pod | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xCAT-client/pods/man8/runsqlcmd.8.pod b/xCAT-client/pods/man8/runsqlcmd.8.pod index 01b7c4041..9cbce0d8f 100644 --- a/xCAT-client/pods/man8/runsqlcmd.8.pod +++ b/xCAT-client/pods/man8/runsqlcmd.8.pod @@ -15,6 +15,8 @@ B<runsqlcmd> {B<-d>|B<--dir> I<directory_path>} B<runsqlcmd> {B<-f>|B<--files> I<list of files>} +B<runsqlcmd> {B<sql statement>} + =head1 DESCRIPTION @@ -43,13 +45,15 @@ To use a directory other than the default directory, enter the directory path h Comma separated list of files (full path), wildcard (*) can be used. - =item B<File format> The files must be of the form <name>.sql or <name>_<database>.sql where <database> is mysql,pgsql, or db2. Files must have permission 0755. +=item B<sql statement> + +Quoted sql statement syntax appropriate for the current database. =back @@ -82,5 +86,10 @@ To checkout one DB2 sql file: B<runsqlcmd> I<-f> I</tmp/db2/test_db2.sql> +=item * + +To run the following command to the database: + +B<runsqlcmd> I<"Select * from site;"> =back