benxiong 发表于 2011-12-22 08:54

解决sqlplus中输入错误不能撤回修改的问题

<DIV>
<P><FONT face=楷体_GB2312 size=3><FONT color=#000000>sqlplus中</FONT><FONT color=#000000>打错</FONT><A onclick="javascript:tagshow(event, 'sql');" href="javascript:;" target=_self><U><STRONG><FONT color=#000000>sql</FONT></STRONG></U></A><FONT color=#000000>命令时不能回撤,不能修改,只能回车重新写,非常麻烦,下面有两种方法解决</FONT></FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>(1)</FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>临时的方法:</FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>在console里输入stty erase ^H, 然后再使用sqlplus 来连接数据库。</FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3></FONT>&nbsp;</P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>永久的方式:</FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>在用户的.profile里面加入</FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>stty erase ^H</FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>即可。</FONT></P>
<P><FONT color=#000000></FONT>&nbsp;</P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>(2)</FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>在SCRT里的终端--〉仿真--〉映射键中将backspace发送delete选项选中,将另一个删除,即可。</FONT></P>
<P><FONT face=楷体_GB2312 color=#000000 size=3>推荐后者。</FONT></P></DIV>
页: [1]
查看完整版本: 解决sqlplus中输入错误不能撤回修改的问题