关于oracle sqldeveloper:sql code not working in oraclesqldeveloper: Invalid Character error

sql code not working in oraclesqldeveloper: Invalid Character error

我编写了一个代码来查找特定数字的几个项目,但它一直说这是一个"无效字符"。"ORA-00911:无效字符

  • 00000 - "invalid character"
    *Cause: identifiers may not start with any ASCII character other than
    letters and numbers. $#_ are also allowed after the first
    character. Identifiers enclosed by doublequotes may contain
    any character other than a doublequote. Alternative quotes
    (q'#...#') cannot use spaces, tabs, or carriage returns as
    delimiters. For all other contexts, consult the SQL Language
    Reference Manual.
    *Action: Error at Line: 14 Column: 23"
  • 我的大脑被炸毁了,我不确定问题出在哪里。

    需要帮助。谢谢。

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    SELECT
    a.app_num,
    a.crs_pol_num,
    kl.score,
    kl.risk_level_desc
    FROM
    application a,
    kyc_new_risk_level kl
    WHERE
    a.app_num = kl.app_num
    AND a.app_num = (SELECT MAX(to_number(a1.app_num)) FROM
    application a1,
    kyc_new_risk_level kl1 WHERE kl1.app_num = a1.app_num AND a1.crs_pol_num = a.crs_pol_num)
    AND a.crs_pol_num IN (a€?CG0147511a€?,
    a€?CG0133662a€?,
    a€?CG0138107a€?,
    a€?493186a€?,
    a€?CG0142230a€?,
    a€?CS0138382a€?,
    a€?CG0147509a€?,
    a€?CG0147545a€?,
    a€?921141048001a€?,
    a€?CG0347239a€?,
    a€?CG0142212a€?,
    a€?CG0147518a€?,
    a€?CG0134057a€?,
    a€?CG0143158a€?,
    a€?CG0147536a€?,
    a€?CG0244124a€?,
    a€?CG0134102a€?,
    a€?CG0241709a€?,
    a€?CG0147197a€?,
    a€?CG0137204a€?,
    a€?CG0347496a€?,
    a€?CG0147490a€?,
    a€?CG0143467a€?,
    a€?CG0135689a€?,
    a€?CG0146904a€?,
    a€?CS0132517a€?,
    a€?CG0145455a€?,
    a€?CG0147554a€?,
    a€?CG0133626a€?,
    a€?CG0147560a€?,
    a€?CG0135359a€?,
    a€?CG0133303a€?,
    a€?921165287001a€?,
    a€?CG0147546a€?,
    a€?CG0114581,
    a€?CG0122266a€?,
    a€?CG0236577a€?,
    a€?CG0345349a€?,
    a€?CG0132670a€?,
    a€?CG0147413a€?,
    a€?CG0241646a€?,
    a€?CG0143783a€?,
    a€?CG0245160a€?,
    a€?CG0124066a€?,
    a€?CG0124830a€?,
    a€?CG0145956a€?,
    a€?CG0232953a€?,
    a€?CG0144479a€?,
    a€?CG0147569a€?,
    a€?CG0147555a€?,
    a€?CG0244857a€?,
    a€?CG0147562a€?,
    a€?CG0347578a€?,
    a€?CG0346461a€?,
    a€?CS0133352a€?,
    a€?512097a€?,
    a€?CS0127026a€?,
    a€?CG0147583a€?,
    a€?CG0233314a€?,
    a€?CG0247096a€?,
    a€?CG0131282a€?,
    a€?CG0123462a€?,
    a€?CS0124502a€?,
    a€?CG0146034a€?,
    a€?CG0140236a€?,
    a€?CS0126420a€?,
    a€?CG0147557a€?,
    a€?CG0123182a€?,
    a€?CG0233300a€?,
    a€?CG0132782a€?,
    a€?CG0147501a€?,
    a€?CS0141693a€?,
    a€?CG0145237a€?,
    a€?CG0141763a€?,
    a€?CG0147591a€?,
    a€?CG0144107a€?,
    a€?CG0125208a€?,
    a€?CG0132306a€?);


    SQL Developer 在您运行查询之前就向您展示了问题

    enter

    但是你的光标在坏字符上,然后按Ctrl R

    enter

    但如果你错过了所有这些,从数据库返回的错误也会告诉你问题出在哪里

    enter