数数没有。 PL/SQL 中字符串中的字符和单词
给定一个任意长度的字符串,任务是使用 PL/SQL 计算字符串中的字符和单词数。
PL/SQL 是 SQL 与过程的组合。编程的特点 语言。它是由 Oracle 公司在 90 年代初开发的,旨在增强 SQL 的功能。 PL/SQL 是嵌入式系统中的三种关键编程语言之一 Oracle 数据库,以及 SQL 本身和 Java。
在 PL/SQL 块中,我们有 DECLARE 块,用于声明中使用的变量 编程,我们有 BEGIN 块,我们可以在其中编写给定问题的逻辑,
例如
Input − string str = “Tutorials Point” Output− count of characters is: 15 Count of words are: 2登录后复制
Input − string str = “Honesty is the best policy” Output − count of characters is: 26 Count of words are: 5登录后复制