PostgreSQL 12.17 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples in the array. For example: 191 Data Types SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_positions ----------------- 2 SELECT array_positions(ARRAY[1, 4, 3 to_char(-125.8, '999D99S') to_date(text, text) date convert string to date to_date('05 Dec 2000', 'DD Mon YYYY') to_number(text, text) numeric convert string to numer- ic to_num- ber('12,454.8-', '99G999D9S')0 码力 | 2786 页 | 12.72 MB | 1 年前3PostgreSQL 12.17 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_positions ----------------- 2 SELECT array_positions(ARRAY[1, 4, 3 to_char(-125.8, '999D99S') to_date(text, text) date convert string to date to_date('05 Dec 2000', 'DD Mon YYYY') to_number(text, text) numeric convert string to numeric to_num- ber('12,454.8-', '99G999D9S')0 码力 | 2943 页 | 12.61 MB | 1 年前3PostgreSQL 14.10 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_position ---------------- 2 (1 row) SELECT array_positions(ARRAY[1 function accepts any non-array data type, with automatic promotion of multiple arguments to a com- mon data type (see Section 38.2.5). anycompatiblerange Indicates that a function accepts any range data0 码力 | 2871 页 | 13.38 MB | 1 年前3PostgreSQL 14.10 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_position ---------------- 2 (1 row) SELECT array_positions(ARRAY[1 function accepts any non-array data type, with automatic promotion of multiple arguments to a com- mon data type (see Section 38.2.5). anycompatiblerange Indicates that a function accepts any range data0 码力 | 3032 页 | 13.27 MB | 1 年前3PostgreSQL 13.13 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_position ---------------- 2 (1 row) SELECT array_positions(ARRAY[1 text ) → date Converts string to date according to the given format. to_date('05 Dec 2000', 'DD Mon YYYY') → 2000-12-05 to_number ( text, text ) → numeric Converts string to numeric according to the0 码力 | 2782 页 | 13.00 MB | 1 年前3PostgreSQL 16.1 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_position ---------------- 2 (1 row) SELECT array_positions(ARRAY[1 function accepts any non-array data type, with automatic promotion of multiple arguments to a com- mon data type (see Section 38.2.5). anycompatiblerange Indicates that a function accepts any range data0 码力 | 3133 页 | 14.10 MB | 1 年前3PostgreSQL 16.1 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); 199 Data Types array_position ---------------- 2 (1 row) function accepts any non-array data type, with automatic promotion of multiple arguments to a com- mon data type (see Section 38.2.5). anycompatiblerange Indicates that a function accepts any range data0 码力 | 2974 页 | 14.22 MB | 1 年前3PostgreSQL 17beta1 US Documentation
assuming 30 days per month and 24 hours per day, e.g., 177 Data Types '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_position ---------------- 2 (1 row) SELECT array_positions(ARRAY[1 function accepts any non-array data type, with automatic promotion of multiple arguments to a com- mon data type (see Section 36.2.5). anycompatiblerange Indicates that a function accepts any range data0 码力 | 3188 页 | 14.32 MB | 1 年前3PostgreSQL 10.23 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_positions ----------------- 2 SELECT array_positions(ARRAY[1, 4, 3 to_char(-125.8, '999D99S') to_date(text, text) date convert string to date to_date('05 Dec 2000', 'DD Mon YYYY') to_number(text, text) numeric convert string to numer- ic to_num- ber('12,454.8-', '99G999D9S')0 码力 | 2590 页 | 12.03 MB | 1 年前3PostgreSQL 15.5 Documentation
days and microseconds, assuming 30 days per month and 24 hours per day, e.g., '1.75 months' becomes 1 mon 22 days 12:00:00. Only seconds will ever be shown as fractional on output. Table 8.17 shows some examples occurrences of the value in the array. For example: SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); array_position ---------------- 2 (1 row) 198 Data Types SELECT function accepts any non-array data type, with automatic promotion of multiple arguments to a com- mon data type (see Section 38.2.5). anycompatiblerange Indicates that a function accepts any range data0 码力 | 2910 页 | 13.60 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4