小编Sum*_*man的帖子

如何删除oracle中的随机子字符串

我需要你对给定问题的帮助

我有一个带有列工人的表,它提供了数据

thorax1 [00400-00479] head1 [00100-00228] lab66 [lab661]

the whole date is in single column

我们有一个页面,我们可以命令删除任何给定的字符串.

为了删除记录,我们只给出方括号中的代码.

例如,如果我们需要删除 head1 [00100 - 00228],我们只给00100 - 00228删除字符串.

这里我的问题是写一个查询,我们可以给00100 - 0022800400 - 00479删除head1 [00100 - 00228]thorax1 [00400 - 00479] 记录.

oracle substring oracle10g

1
推荐指数
1
解决办法
95
查看次数

Java 1.4中的当前日期

为了获得mm/dd/yyyy格式的当前日期,我使用以下代码

SimpleDateFormat sdf = new SimpleDateFormat("mm/dd/yyyy");
                Date date = new Date();
                 String date3= sdf.format(date);
                date = sdf.parse(date3);
Run Code Online (Sandbox Code Playgroud)

但每次我打印日期,它都会给我错误的随机输出

产量

Currentd Date:: 49/22/2013

产量

Currentd Date:: 07/22/2013

请建议我应该使用什么来获取当前日期.我使用的Java版本是1.4

java date java1.4 simpledateformat

0
推荐指数
1
解决办法
1961
查看次数

Get string in square brackets

I have a string: head1 [00100 - 00228]

I need to retrieve the value that is there is square bracket, i.e. 00100 - 00228

I have used:

String a="head1  [00100 - 00228]";    
replaceAll("(\\[.*?\\])", ""))
Run Code Online (Sandbox Code Playgroud)

but this has removed square bracket string. Can anyone help me to get the desire output?

java regex

0
推荐指数
1
解决办法
4126
查看次数

标签 统计

java ×2

date ×1

java1.4 ×1

oracle ×1

oracle10g ×1

regex ×1

simpledateformat ×1

substring ×1