Php oci_execute()错误消息
我收到下面的错误消息。oracle还应使用哪些其他压缩功能(SHA1除外)Php oci_execute()错误消息,php,sql,oracle,ora-00904,Php,Sql,Oracle,Ora 00904,我收到下面的错误消息。oracle还应使用哪些其他压缩功能(SHA1除外) 警告:oci_execute()[function.oci execute]:ORA-00904:“SHA1”:第2行/user_auth_fns.php中的标识符无效 $result = oci_parse($conn, "select * from user where username='$username' and passwd = sha1('$password')"); $r = oci_execute($
警告:oci_execute()[function.oci execute]:ORA-00904:“SHA1”:第2行/user_auth_fns.php中的标识符无效
$result = oci_parse($conn, "select * from user where username='$username' and passwd = sha1('$password')");
$r = oci_execute($result);
if (!$r) {
$error = oci_error($conn);
echo "Could not log you in." . $error['message'];
exit;
SHA1
是一个PHP函数,而不是Oracle。您需要使用以下内容:
AND passwd = '{sha1($password)}'