我正在开发一个软件应用程序来检查你安装了哪种软件,但为了做到这一点,我必须知道操作系统是32位还是64位操作系统.我试过System.getProperty("os.arch"); 但后来我读到这个命令只向我们展示了JDK/JRE的位,而不是操作系统本身.如果你能告诉我如何知道操作系统的使用(Windows 7,Mac OS,Ubuntu等等),那将简直太棒了C:
我在尝试创建这个存储过程时遇到了一些困难,欢迎任何形式的帮助:
create procedure checando(in nombrecillo varchar(30), in contrilla varchar(30), out resultado int)
begin
if exists (select * from compas where nombre = nombrecillo and contrasenia = contrilla) then
set resultado = 0;
else if exists (select * from compas where nombre = nombrecillo) then
set resultado = -1;
else
set resultado = -2;
end if;
end;
Run Code Online (Sandbox Code Playgroud)
我正在研究的表是:
+-------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| Nombre | varchar(30) | YES | | …Run Code Online (Sandbox Code Playgroud) 每当我想在div标签中添加一些文本时,我遇到了一些麻烦,这是我的代码:
<html>
<body>
<div id="comments">
</div>
<form name="forma">
<textarea name="commentUser" id="commentUser" cols="40" rows="5">
Comments here...
</textarea><br>
<input type="submit" value="Ready!" onClick="writeComment()" />
</form>
<script type="text/javascript" >
function writeComment()
{
var comment = document.forma.commentUser.value;
alert(comment);
document.getElementById('comments').innerHTML=comment;
}
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
它做了它必须正确做的事情,但然后它只切换回文本框,我刚写的评论消失了.知道这里发生了什么吗?
非常感谢您的参与.
我正在尝试编写一个SQL查询来删除所有空格,这样如果一个字符串只有空格,那么最后一个字符串就是''.
我已经尝试过这段代码,但显然它不适用于多个空间:
regexp_replace(:P14_search_text, '( ){1,}', '')
Run Code Online (Sandbox Code Playgroud)
存在:P14_search_text我想要修改的字符串.
有帮助吗?