<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://www.sqlines.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.sqlines.com/feed.php">
        <title>SQLines Tools sybase-to-postgresql</title>
        <description></description>
        <link>https://www.sqlines.com/</link>
        <image rdf:resource="https://www.sqlines.com/lib/images/favicon.ico" />
       <dc:date>2026-04-17T01:10:32+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.sqlines.com/sybase-to-postgresql/convert_datetime?rev=1672225049&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sybase-to-postgresql/convert_string_datetime?rev=1672228197&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sybase-to-postgresql/convert_time?rev=1672181703&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sybase-to-postgresql/datename?rev=1672328638&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sybase-to-postgresql/day?rev=1672182903&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sybase-to-postgresql/str_replace?rev=1729092512&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sybase-to-postgresql/tsql_outer_join?rev=1729099720&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.sqlines.com/lib/images/favicon.ico">
        <title>SQLines Tools</title>
        <link>https://www.sqlines.com/</link>
        <url>https://www.sqlines.com/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="https://www.sqlines.com/sybase-to-postgresql/convert_datetime?rev=1672225049&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-28T10:57:29+00:00</dc:date>
        <title>CONVERT - String to Datetime - Sybase ASE to PostgreSQL Migration</title>
        <link>https://www.sqlines.com/sybase-to-postgresql/convert_datetime?rev=1672225049&amp;do=diff</link>
        <description>In Sybase Adaptive Server Enterprise (ASE) you can use CONVERT function to convert a string expression in the specified format (style) to a datetime data type (DATE, DATETIME etc.). In PostgreSQL you can to use TO_TIMESTAMP function.

Note that Sybase ASE CONVERT and PostgreSQL formats are different.</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sybase-to-postgresql/convert_string_datetime?rev=1672228197&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-28T11:49:57+00:00</dc:date>
        <title>CONVERT - Datetime to String - Sybase ASE to PostgreSQL Migration</title>
        <link>https://www.sqlines.com/sybase-to-postgresql/convert_string_datetime?rev=1672228197&amp;do=diff</link>
        <description>In Sybase Adaptive Server Enterprise (ASE)  you can use CONVERT function to convert a DATETIME value to a string with the specified format. In PostgreSQL, you can use TO_CHAR function. 

Note that Sybase ASE CONVERT and PostgreSQL formats are different.</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sybase-to-postgresql/convert_time?rev=1672181703&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-27T22:55:03+00:00</dc:date>
        <title>CONVERT For Time Function - Sybase ASE to PostgreSQL Migration</title>
        <link>https://www.sqlines.com/sybase-to-postgresql/convert_time?rev=1672181703&amp;do=diff</link>
        <description>In Sybase Adaptive Server Enterprise (ASE) you can use CONVERT function to convert an expression (a string i.e.) to TIME data type. In PostgreSQL you can to use CAST or various type conversion functions.

Sybase ASE:


  -- Convert string to TIME
  SELECT CONVERT(TIME, '11:11'); 
  # 11:11:00 AM</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sybase-to-postgresql/datename?rev=1672328638&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-29T15:43:58+00:00</dc:date>
        <title>DATENAME Function - Sybase ASE to PostgreSQL Migration</title>
        <link>https://www.sqlines.com/sybase-to-postgresql/datename?rev=1672328638&amp;do=diff</link>
        <description>In SAP Sybase Adaptive Server Enterprise (ASE) you can use DATENAME function to extract the specified unit (a date part such as year, month, day etc.) from a datetime value. In PostgreSQL you can use TO_CHAR function with the specific format type.</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sybase-to-postgresql/day?rev=1672182903&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-27T23:15:03+00:00</dc:date>
        <title>DAY Function - Sybase ASE to PostgreSQL Migration</title>
        <link>https://www.sqlines.com/sybase-to-postgresql/day?rev=1672182903&amp;do=diff</link>
        <description>In Sybase Adaptive Server Enterprise (ASE) you can use DAY function to get the day (an integer number) of the specified datetime. In PostgreSQL you have to use EXTRACT(DAY FROM datetime) function.

Sybase ASE:


  -- Get the day
  SELECT DAY('2022-12-28'); 
  # 28</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sybase-to-postgresql/str_replace?rev=1729092512&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-16T15:28:32+00:00</dc:date>
        <title>STR_REPLACE Function - Sybase ASE to PostgreSQL Migration</title>
        <link>https://www.sqlines.com/sybase-to-postgresql/str_replace?rev=1729092512&amp;do=diff</link>
        <description>In Sybase Adaptive Server Enterprise (Sybase ASE) you can use STR_REPLACE function to replace all occurrences of a substring in string. In PostgreSQL you can use REPLACE function. 

Sybase ASE:


  -- Replace 'bc' with '12'
  SELECT STR_REPLACE('abcd', 'bc', '12');
  # a12d</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sybase-to-postgresql/tsql_outer_join?rev=1729099720&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-16T17:28:40+00:00</dc:date>
        <title>Outer Joins *= and =* - Sybase ASE to PostgreSQL Migration</title>
        <link>https://www.sqlines.com/sybase-to-postgresql/tsql_outer_join?rev=1729099720&amp;do=diff</link>
        <description>Sybase Adaptive Server Enterprise (ASE) supports legacy Transact-SQL syntax *= and =* for outer joins. In PostgreSQL you have to use ANSI SQL standard LEFT OUTER and RIGHT OUTER join syntax.

Consider the following sample table:


  CREATE TABLE colors (name VARCHAR(30), category CHAR(1));
  
  INSERT INTO colors VALUES ('Green', 'G');
  INSERT INTO colors VALUES ('Red', 'R');
  INSERT INTO colors VALUES ('Blue', 'B');

  CREATE TABLE categories (name CHAR(1), note VARCHAR(30));
  
  INSERT INTO…</description>
    </item>
</rdf:RDF>
