SELECT 
  cscart_product_descriptions.product_id, 
  cscart_product_descriptions.short_description, 
  IF(
    cscart_product_descriptions.short_description = '' 
    OR cscart_product_descriptions.short_description IS NULL, 
    cscart_product_descriptions.full_description, 
    ''
  ) AS full_description, 
  cscart_product_descriptions.unit_name 
FROM 
  cscart_product_descriptions 
WHERE 
  cscart_product_descriptions.product_id IN (2504) 
  AND cscart_product_descriptions.lang_code = 'en'

Query time 0.00040

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.00"
    },
    "table": {
      "table_name": "cscart_product_descriptions",
      "access_type": "const",
      "possible_keys": [
        "PRIMARY",
        "product_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id",
        "lang_code"
      ],
      "key_length": "9",
      "ref": [
        "const",
        "const"
      ],
      "rows_examined_per_scan": 1,
      "rows_produced_per_join": 1,
      "filtered": "100.00",
      "cost_info": {
        "read_cost": "0.00",
        "eval_cost": "0.10",
        "prefix_cost": "0.00",
        "data_read_per_join": "4K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description",
        "unit_name"
      ]
    }
  }
}

Result

product_id short_description full_description unit_name
2504 <div class="flex flex-grow flex-col max-w-full"> <div class="min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 juice:w-full juice:items-end overflow-x-auto gap-2" dir="auto" data-message-author-role="assistant" data-message-id="3674c4ce-966b-42f9-a53e-f499df709a89"> <div class="flex w-full flex-col gap-1 juice:empty:hidden juice:first:pt-[3px]"> <div class="markdown prose w-full break-words dark:prose-invert light"> <p><strong>Illuminate Your Outdoors with CLAONER Solar Motion Sensor Lights</strong></p> <p>Upgrade your outdoor lighting with CLAONER Solar Motion Sensor Lights, designed to provide eco-friendly, powerful illumination without the need for electricity or wiring. Perfect for walls, fences, patios, and sheds, these lights are easy to install and offer exceptional brightness and coverage.</p> <p><strong>Key Features:</strong></p> <ul> <li><strong>Green Energy, Green Lighting:</strong> Harness the power of the sun with our solar motion sensor lights. No electricity or wiring required—just install and enjoy bright, hassle-free outdoor lighting.</li> <li><strong>Easy Installation:</strong> Use the included screws or double-sided tape to quickly secure the lights onto walls, fences, patios, sheds, and more. Enjoy powerful illumination in minutes.</li> <li><strong>Brighter &amp; Larger Coverage:</strong> Featuring 270° wide-angle illumination and reflector LED beads, these lights provide superior brightness and a wider coverage area. The enhanced PIR motion sensor detects movement up to 12-20 feet with a 120° detection angle, ensuring no corner is left in the dark.</li> <li><strong>High-Efficiency Solar Panel:</strong> Our monocrystalline silicon solar panel increases energy conversion rates from 20.5% to 22%, charging faster during the day and extending lighting time at night.</li> <li><strong>IP65 Waterproof &amp; Durable:</strong> Made from high-strength ABS material, these lights are designed to withstand all weather conditions. The IP65 waterproof rating ensures reliable performance, providing safety and comfort throughout the seasons.</li> <li><strong>Three Lighting Modes:</strong> Customize your lighting with three versatile modes: <ol> <li><strong>Normally On Mode:</strong> Stays on at medium light.</li> <li><strong>Dim to High Light Sensor Mode:</strong> Shifts to dim light if no motion is detected for 20 seconds.</li> <li><strong>Off to High Light Sensor Mode:</strong> Turns off if no motion is detected for 20 seconds.</li> </ol> </li> </ul> <p><strong>Why Choose CLAONER Solar Motion Sensor Lights?</strong></p> <ul> <li><strong>Eco-Friendly &amp; Cost-Effective:</strong> Save on energy bills and reduce your carbon footprint with solar-powered lighting.</li> <li><strong>Superior Brightness &amp; Coverage:</strong> Ensure maximum visibility and safety with our high-brightness LEDs and wide coverage angle.</li> <li><strong>Durable &amp; Weather-Resistant:</strong> Built to last through all seasons, providing reliable outdoor lighting no matter the weather.</li> <li><strong>Flexible Lighting Modes:</strong> Choose the perfect setting for your needs, whether for security, convenience, or ambiance.</li> </ul> <p>Enhance your outdoor spaces with CLAONER Solar Motion Sensor Lights. Order now and experience the perfect blend of eco-friendly technology and powerful illumination, creating a safer and more comfortable environment for you and your family!</p> </div> </div> </div> </div> <div class="mt-1 flex gap-3 empty:hidden juice:-ml-3"> <div class="items-center justify-start rounded-xl p-1 flex"> <div class="flex items-center"> <div class="flex items-center pb-0.5 juice:pb-0"> </div> </div> </div> </div>