我有一个非常大的SQL查询。我正在尝试使用JavaScript从SQL查询中抓取表格名称。 (我在一个文本文件中提供SQL查询作为输入)
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"
https://www.google.de ...ok
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2124)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at examples.MyProxyPass.<init>(MyProxyPass.java:32)
at examples.MyProxyPass.main(MyProxyPass.java:63)
实现这样的目标的正则表达式是什么?
select t1.name, t1.id, t1.address, t2.units,t2.sale
from SCHMEA1.candy_customers_azim_056 as t1
inner join SCHEMA1.candy_sales_history_set t2
on (t1.custid = t2.ORIGTN_ACCT_NO)
答案 0 :(得分:3)
(from|join)\s+\w+\.((\w*)[as ]+(\w+))
应该返回您在第二个捕获组中寻找的内容。
答案 1 :(得分:0)