Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C7CBA6334A0 for ; Sun, 27 Dec 2009 08:59:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 31379-05 for ; Sun, 27 Dec 2009 12:59:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mail.postgresql.org (Postfix) with ESMTP id AE2F66324BB for ; Sun, 27 Dec 2009 08:59:38 -0400 (AST) Received: by bwz5 with SMTP id 5so6284240bwz.3 for ; Sun, 27 Dec 2009 04:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=DpzZ6VRdTmGHER8UT3eGqc66BbkHF+In9plimTQIPvA=; b=JedOTSntL7DtycvKGHx1O9zQyaGqzbYyLl7y8ioZojhXGOrbDiFRI2kk28giRfbiH2 O9WJzC48Lhfts6YpssovH5jKzLHN5IIhNDtoxFKoM9PDx9Z+Mg4UGoG9MEYuK61OI71a MsH1VuZlsgDb/be9jciRwl2d/lS71kveebCFA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Rb8uXJtly97yuUgicdK/SVPZiVLU243VnVH9/7v0Po/t2hFO80jL6W8dibFAz+Mn6k 8C/uvFI7NLSLF4hYmxhn5+6oc2N3kUtRIvmcOZen/iBsDSyTTWdcGZ/wdU3D/SKFTr0/ IF/0G92zzFiyeuW6D2lGy6EXP696Xn7hG+HHQ= MIME-Version: 1.0 Received: by 10.204.20.142 with SMTP id f14mr2089693bkb.64.1261918775741; Sun, 27 Dec 2009 04:59:35 -0800 (PST) In-Reply-To: <4B3737DA.4070408@gmail.com> References: <4B3737DA.4070408@gmail.com> Date: Sun, 27 Dec 2009 13:59:35 +0100 X-Google-Sender-Auth: 6b42f53856655a1e Message-ID: <92869e660912270459h55fd3024k97d8c5ee1d4cfd60@mail.gmail.com> Subject: Re: Get a table name From: =?UTF-8?Q?Filip_Rembia=C5=82kowski?= To: Gianvito Pio , pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=AWL=0.001, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/99 X-Sequence-Number: 20180 In general, no. That's because resultset columns can be "entangled" in more complex way than "column a of table b". 2009/12/27, Gianvito Pio : > Hi all, > I'm trying to get the table name of a column in this way: > > ResultSet rs; > try > { > rs =3D ps.executeQuery(); > ResultSetMetaData rsmd =3D rs.getMetaData(); > System.out.println(rsmd.getTableName(..)); > > but the getTableName( ..) method gives me an empty string. Isn't there a > way to know the table name of a specific field I'm obtaining? Thanks > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > --=20 Wys=C5=82ane z mojego urz=C4=85dzenia przeno=C5=9Bnego Filip Rembia=C5=82kowski JID,mailto:filip.rembialkowski@gmail.com http://filip.rembialkowski.net/