<?php $conn = new PDO('sqlite::memory:'); $conn->exec('CREATE TABLE php81_test (test_int INTEGER NOT NULL, test_decimal NUMERIC(10, 2) DEFAULT NULL, PRIMARY KEY(test_int))'); $conn->exec('INSERT INTO php81_test (test_int, test_decimal) VALUES (1, 1.55)'); $stmt = $conn->query('SELECT * FROM php81_test'); var_dump($stmt->fetch(PDO::FETCH_ASSOC)); $stmt = $conn->query('PRAGMA table_info(php81_test)'); var_dump($stmt->fetch(PDO::FETCH_ASSOC));
You have javascript disabled. You will not be able to edit any code.