Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5B1R-0006i8-K1 for pgsql-general@arkaria.postgresql.org; Mon, 10 Aug 2020 16:51:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5B1Q-0000xt-KI for pgsql-general@arkaria.postgresql.org; Mon, 10 Aug 2020 16:51:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5B1O-0000xh-PJ for pgsql-general@lists.postgresql.org; Mon, 10 Aug 2020 16:51:40 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5B1K-0003RZ-LF for pgsql-general@lists.postgresql.org; Mon, 10 Aug 2020 16:51:38 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 625B05C00BC; Mon, 10 Aug 2020 12:51:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 10 Aug 2020 12:51:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=L KoSXfWDtdkDHKBiECREgqhK5FrU1LOeU+guos6SGRU=; b=kLJ6EjlvPbyISS5vD srLTN8AiTuOYITJj5M4kQjvFDld25mmplHJMQ3L5Z3+NvYRRM17a9kQoXR7qVywC vBO5aVDQrk6ET6H3oWTCKtvVzgF/OormwFIRGWA0oHQ4r/pwtjucrjpuLJXPjui1 E+CJG+TvAO6m6SuUebL5EnbPYpqhIGuZM4k3MiCGFP6EoTJwBjig6DrwKv3rcsik KKMlR4dVpLOkDnOVYAiRIbJ075FkkLWR6q0bQWLr7uR3GBhIC5UaXg61eq5DyiVH P4IVFZxdKb243SpIAKYbu16Rzc2etealFsAcrmQgHqsNx0UOZHGZ9Ngd+tXGuaun lNvfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=LKoSXfWDtdkDHKBiECREgqhK5FrU1LOeU+guos6SG RU=; b=E0Xb626qPbAIWvDMv630u46lMnFIlAQW3mCUR/MpBFRc+WIR5J81D8NuU upbVrtu6ITbQ3fNivv0muuWIcbVwgvyqTQT8fmEN2pvMV17Qt6XkzhWpQxvu1Fv9 4QE1WSPwzcW/BiBWTrhqk0683oxOng+oVxULP0g4re1lIDV2I1q99IzSoKYo/1w3 hKiWXZWe6SEyJfkm+SmxGle7mpTCbhKG7xZUqIGWByIQ/cQrpqTNwdiXmA/sOSai 7JM98Tleq2NEws2rfF5d63+RZDdpL9T1Jxzs8M31VpkBfYZxGw8ocUJZw9TX/q9G 56V5IuGLt0Vf3JTTgivDF/iI6o5Jw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrkeekgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepveetjedtie ekteefhffhhfetledvkeffvedugeejueekhffgvdeileeitdekvefhnecuffhomhgrihhn pehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjeegrdelgedrjeefrddvvddvnecuuf hprghmkfhppfgvthifohhrkhepjeegrdelgedrjeefrddvvddvnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id A4A8430600A6; Mon, 10 Aug 2020 12:51:30 -0400 (EDT) Subject: Re: SQL Question about like To: "pgml@gmx.de" , pgsql-general@lists.postgresql.org References: <00d20cc2-0c97-8ce7-768a-a2c8bc396d19@gmx.de> From: Adrian Klaver Message-ID: <42775a6c-d4d9-26ea-39d9-22f2c734c9ac@aklaver.com> Date: Mon, 10 Aug 2020 09:51:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <00d20cc2-0c97-8ce7-768a-a2c8bc396d19@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/10/20 9:37 AM, pgml@gmx.de wrote: > Hello, > > my SQL question is, why psql doesn't return the record? > > create table lll (text char(100)); > insert into lll (text) values ('10% - Ersthelfer'); > > select * from lll where text like '10% - Ersthelfer'; > > Other databases (Maria, SQL Server, YARD) do this. > What can I do in pg, to get the result? A little documentation goes a long way:) : https://www.postgresql.org/docs/12/functions-matching.html#FUNCTIONS-LIKE > > Thank you and best regards, Martin > > > -- Adrian Klaver adrian.klaver@aklaver.com