Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2A35963366A for ; Sun, 27 Dec 2009 06:33:17 -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 55042-09 for ; Sun, 27 Dec 2009 10:32:43 +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 27E7263362D for ; Sun, 27 Dec 2009 06:33:05 -0400 (AST) Received: by bwz5 with SMTP id 5so6256590bwz.3 for ; Sun, 27 Dec 2009 02:33:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=K923qPfiX8saf+YCX22PPPFKIBnVklln+8EuHvIonzc=; b=ASJYKJ/yg6cgkJ3iZHWC2ik6Zz/uxkVefTYYoZGXEF7i0lrTRMh2ArnkpRL7abTm9e 2J6Vt2l4ZiDjYuXIWCmo9EbGUKdtn7FbXexJ+rpqmVbiP5GrAhHZI0qzaFCq4kNSSVP3 N7Cq7/QT0/WPO3RpAwVxPAAP8jGloDB+wqAgk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=is3SqibBi5DyuPmMOGqYfg1WsbW98vU/gzO7YCz1bbClOFe6jkyxtvbJMRS2TnAkJe VmppyClCIBFLoVYZQlpkIcSEfgTbLAzpeppxg0I3fjnKSr1WzS+FKaqwNdqo3oxqRN2E YEKFp+zjNF4Hsohq1pdPeVmFUe65QBDDr9xCo= Received: by 10.204.5.75 with SMTP id 11mr1245510bku.20.1261909983954; Sun, 27 Dec 2009 02:33:03 -0800 (PST) Received: from ?192.168.1.128? (net-93-144-29-163.t2.dsl.vodafone.it [93.144.29.163]) by mx.google.com with ESMTPS id 16sm3084699bwz.11.2009.12.27.02.33.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 27 Dec 2009 02:33:02 -0800 (PST) Message-ID: <4B3737DA.4070408@gmail.com> Date: Sun, 27 Dec 2009 11:32:58 +0100 From: Gianvito Pio User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Get a table name Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 200912/98 X-Sequence-Number: 20179 Hi all, I'm trying to get the table name of a column in this way: ResultSet rs; try { rs = ps.executeQuery(); ResultSetMetaData rsmd = 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