* how to execute sql script under sql-oracle mode?
@ 2008-05-20 9:24 sunway
2008-05-21 8:56 ` Tim X
0 siblings, 1 reply; 2+ messages in thread
From: sunway @ 2008-05-20 9:24 UTC (permalink / raw)
To: help-gnu-emacs
for example,when using @foo in sql-oracle mode, error says "unable to
open file foo.sql" , how to solve the problem?
btw,is it possible to use TAB to complete sql script filename?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to execute sql script under sql-oracle mode?
2008-05-20 9:24 how to execute sql script under sql-oracle mode? sunway
@ 2008-05-21 8:56 ` Tim X
0 siblings, 0 replies; 2+ messages in thread
From: Tim X @ 2008-05-21 8:56 UTC (permalink / raw)
To: help-gnu-emacs
sunway <sunwayforever@gmail.com> writes:
> for example,when using @foo in sql-oracle mode, error says "unable to
> open file foo.sql" , how to solve the problem?
> btw,is it possible to use TAB to complete sql script filename?
I expect your problem is that the sqlplus subprocess has a different
startup/working directory than the one you are using. to put the file
in. Either work out what the starting directory is and use a full path
or see if you can set the path using sqlplus configuraiton options in
the sqlplus init file.
You can probably find out what directory sqlplus thinks is the current
directory by executing a pwd command from within sqlplus buffer or
shelling out.
Not sure what you mean by tab completion of the filename - do you mean
from within the sqlplus subprocess? If so, it could be done, but isn't
part of the standard mode.
What I tend to do is open the sql script file and use the key bindings
to send the contents of the buffer/region to the sqlplus subprocess.
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-21 8:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-20 9:24 how to execute sql script under sql-oracle mode? sunway
2008-05-21 8:56 ` Tim X
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.