Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

psql command does not work

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
psql
1 Svar
2507 Visninger
Avatar
Markus Schittenhelm

Hi,

SELECT name FROM product_template WHERE name='Test%';

does not work ... but I think it should.

Anyone an idea?


Thanks,

Armin

0
Avatar
Kassér
shubham shiroya
  1. check the following steps:
  2. Check the table and column names: Ensure that the table name is correct and matches the actual table name in the database. Similarly, verify that the column name (name in this case) is accurate and matches the column name in the table.

  3. Verify the data type: Confirm that the name column is of a text-based data type (e.g., VARCHAR, TEXT). If the data type is different, the comparison in the WHERE clause may not work as expected. In such cases, you may need to adjust the query accordingly.

  4. Case sensitivity: By default, most databases are case insensitive when comparing string values. However, some databases may be case sensitive depending on the configuration. Ensure that the case of the name value you are searching for matches the case used in the table.

  5. Special characters or encoding: If the name value contains special characters or is encoded differently, it may affect the search. Make sure the encoding is consistent and that any special characters are correctly represented in the query.

  6. Use wildcard operators: If you want to search for name values starting with "Test", you can use the wildcard operator % at the end of the search term. The updated query would be:


  7. SELECT name FROM product_template WHERE name LIKE 'Test%';

If none of these solutions resolve the issue, please provide more details about the error....


Markus Schittenhelm
Forfatter

... thanks for your help, great.
Maybe my select-command is not correct, because the field "name" of the table product_template is of a jsonb kind.
How to proceed in such a case?

Adil Akbar

Hi, you can follow this: https://youtu.be/ntMaAYbsDYM
Hope it helps

Avatar
Niyas Raphy (Walnut Software Solutions)
Bedste svar

Hi,

The written query is valid and working, could you provide more information about where it is not working for you.

You may not have product starting with Test, you can try opposite condition with != and see if you get some results.

Thanks

0
Avatar
Kassér
Markus Schittenhelm
Forfatter

... thanks.

In both cases I receive an syntax error ....?!...
Something wrong with the odoo.sh Installation?

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
psql error
psql
Avatar
Avatar
Avatar
2
mar. 24
9840
_sql_constraints fail to be effective Løst
constraints psql
Avatar
Avatar
Avatar
2
mar. 24
6815
How to pass dynamic values in PSQL query CASE statement ?
psql odoo11
Avatar
Avatar
1
feb. 24
3645
why manual sequence does not work?
sequence psql
Avatar
0
aug. 21
3371
It sounds to be a odoo bug in setting _sql_constraints
constraints psql
Avatar
0
aug. 21
3598
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now